<html>
<head>
<style>
BODY{font-family:courier;}
.keyword{color:rgb(0,0,255);}
.comment{color:rgb(0,128,0);}
.preprocessor{color:rgb(0,0,255);}
.literal{color:rgb(163,21,21);}
.review{color: #FF5500;}
.p{font-family:courier;}
</style>
<script type="text/javascript" src="prototype.js"> </script>
<script type="text/javascript" src="editinplace.js"> </script>
</head>
<script type="text/javascript">
    Event.observe(window, 'load', init, false);
    function init() {            for (i = 1; i <= 10000; i++){
            var        locationid='SL'+i;
                    EditInPlace.makeEditable( {
                            type: 'textarea',
                    id: locationid,
                            save_url: 'edit.php'
                    } );
            }
    }
</script>
<body>
<span id= "SL1">
 &nbsp;<BR/>
</span>
<span id= "SL2">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL3">
<span class=comment>&nbsp;&nbsp;&nbsp;Nifty&nbsp;James'&nbsp;Famous&nbsp;File&nbsp;Find&nbsp;Utility<BR/>
</span></span>
<span id= "SL4">
<span class=comment><BR/>
</span></span>
<span id= "SL5">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;1.00&nbsp;of&nbsp;20&nbsp;November&nbsp;1989<BR/>
</span></span>
<span id= "SL6">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;1.10&nbsp;of&nbsp;16&nbsp;December&nbsp;1989<BR/>
</span></span>
<span id= "SL7">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;1.11&nbsp;of&nbsp;&nbsp;5&nbsp;January&nbsp;&nbsp;1990<BR/>
</span></span>
<span id= "SL8">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;1.12&nbsp;of&nbsp;13&nbsp;February&nbsp;1990<BR/>
</span></span>
<span id= "SL9">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;1.50&nbsp;of&nbsp;25&nbsp;March&nbsp;&nbsp;&nbsp;&nbsp;1990<BR/>
</span></span>
<span id= "SL10">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;2.00&nbsp;of&nbsp;&nbsp;3&nbsp;April&nbsp;&nbsp;&nbsp;&nbsp;1990<BR/>
</span></span>
<span id= "SL11">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;2.10&nbsp;of&nbsp;25&nbsp;August&nbsp;&nbsp;&nbsp;1991<BR/>
</span></span>
<span id= "SL12">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;2.15&nbsp;of&nbsp;&nbsp;9&nbsp;December&nbsp;1991<BR/>
</span></span>
<span id= "SL13">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;2.16&nbsp;of&nbsp;19&nbsp;October&nbsp;&nbsp;1992<BR/>
</span></span>
<span id= "SL14">
<span class=comment>&nbsp;&nbsp;&nbsp;Version&nbsp;2.17&nbsp;of&nbsp;22&nbsp;March&nbsp;&nbsp;&nbsp;&nbsp;1993&nbsp;<BR/>
</span></span>
<span id= "SL15">
<span class=comment><BR/>
</span></span>
<span id= "SL16">
<span class=comment>&nbsp;&nbsp;&nbsp;(C)&nbsp;Copyright&nbsp;1989,&nbsp;1990,&nbsp;1991,&nbsp;1992&nbsp;by&nbsp;Mike&nbsp;Blaszczak<BR/>
</span></span>
<span id= "SL17">
<span class=comment>&nbsp;&nbsp;&nbsp;All&nbsp;Rights&nbsp;Reserved.<BR/>
</span></span>
<span id= "SL18">
<span class=comment><BR/>
</span></span>
<span id= "SL19">
<span class=comment>&nbsp;&nbsp;&nbsp;Written&nbsp;for&nbsp;the&nbsp;Microsoft&nbsp;C&nbsp;Compiler&nbsp;Version&nbsp;6.00AX.<BR/>
</span></span>
<span id= "SL20">
<span class=comment>&nbsp;&nbsp;&nbsp;LINK&nbsp;with&nbsp;an&nbsp;increased&nbsp;stack&nbsp;size!<BR/>
</span></span>
<span id= "SL21">
<span class=comment><BR/>
</span></span>
<span id= "SL22">
<span class=comment>&nbsp;&nbsp;&nbsp;Updated&nbsp;for&nbsp;Microsoft&nbsp;C/C++&nbsp;Version&nbsp;8.00&nbsp;at&nbsp;Version&nbsp;2.17<BR/>
</span></span>
<span id= "SL23">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL24">
<BR/>
</span>
<span id= "SL25">
<BR/>
</span>
<span id= "SL26">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL27">
<span class=comment>&nbsp;&nbsp;&nbsp;Needed&nbsp;#include&nbsp;Files<BR/>
</span></span>
<span id= "SL28">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL29">
<BR/>
</span>
<span id= "SL30">
#<span class=preprocessor>pragma&nbsp;pack(1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*&nbsp;don't&nbsp;space&nbsp;structure&nbsp;members&nbsp;*/<BR/>
</span></span>
<span id= "SL31">
<span class=preprocessor></span>#<span class=preprocessor>include&nbsp;&lt;ctype.h&gt;<BR/>
</span></span>
<span id= "SL32">
<span class=preprocessor></span>#<span class=preprocessor>include&nbsp;&lt;dos.h&gt;<BR/>
</span></span>
<span id= "SL33">
<span class=preprocessor></span>#<span class=preprocessor>include&nbsp;&lt;signal.h&gt;<BR/>
</span></span>
<span id= "SL34">
<span class=preprocessor></span>#<span class=preprocessor>include&nbsp;&lt;stdio.h&gt;<BR/>
</span></span>
<span id= "SL35">
<span class=preprocessor></span>#<span class=preprocessor>include&nbsp;&lt;stdlib.h&gt;<BR/>
</span></span>
<span id= "SL36">
<span class=preprocessor></span>#<span class=preprocessor>include&nbsp;&lt;string.h&gt;<BR/>
</span></span>
<span id= "SL37">
<span class=preprocessor></span>#<span class=preprocessor>include&nbsp;&lt;time.h&gt;<BR/>
</span></span>
<span id= "SL38">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL39">
<span class=keyword>typedef</span>&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;byte;<BR/>
</span>
<span id= "SL40">
<span class=keyword>typedef</span>&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;word;<BR/>
</span>
<span id= "SL41">
<span class=keyword>typedef</span>&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>long</span>&nbsp;dword;&nbsp;&nbsp;&nbsp;&nbsp;<BR/>
</span>
<span id= "SL42">
<span class=keyword>typedef</span>&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;boolean;&nbsp;<BR/>
</span>
<span id= "SL43">
#<span class=preprocessor>define&nbsp;&nbsp;TRUE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(1==1)<BR/>
</span></span>
<span id= "SL44">
<span class=preprocessor></span>#<span class=preprocessor>define&nbsp;&nbsp;FALSE&nbsp;&nbsp;&nbsp;&nbsp;(!TRUE)<BR/>
</span></span>
<span id= "SL45">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL46">
#<span class=preprocessor>define&nbsp;ELEMENTS(array)&nbsp;(sizeof(array)/sizeof(array[0]))<BR/>
</span></span>
<span id= "SL47">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL48">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL49">
<span class=comment>&nbsp;&nbsp;&nbsp;Structures&nbsp;used&nbsp;here<BR/>
</span></span>
<span id= "SL50">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL51">
<BR/>
</span>
<span id= "SL52">
<span class=keyword>struct</span>&nbsp;&nbsp;&nbsp;<a href="#SL52">fullfilename</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;used&nbsp;internally&nbsp;to&nbsp;hold&nbsp;filenames&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL53">
{<BR/>
</span>
<span id= "SL54">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;filename[9];<BR/>
</span>
<span id= "SL55">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;fileextension[4];<BR/>
</span>
<span id= "SL56">
};<BR/>
</span>
<span id= "SL57">
<BR/>
</span>
<span id= "SL58">
<BR/>
</span>
<span id= "SL59">
/*<span class=comment>&nbsp;This&nbsp;is&nbsp;the&nbsp;&quot;local&nbsp;file&nbsp;header&quot;&nbsp;for&nbsp;zip&nbsp;files.&nbsp;&nbsp;The&nbsp;zip_lfh&nbsp;structure<BR/>
</span></span>
<span id= "SL60">
<span class=comment>&nbsp;&nbsp;&nbsp;preceeds&nbsp;each&nbsp;file&nbsp;in&nbsp;the&nbsp;ZIP&nbsp;file,&nbsp;and&nbsp;describes&nbsp;the&nbsp;individual&nbsp;files<BR/>
</span></span>
<span id= "SL61">
<span class=comment>&nbsp;&nbsp;&nbsp;stored&nbsp;there.&nbsp;&nbsp;Note&nbsp;that&nbsp;we&nbsp;read&nbsp;one&nbsp;of&nbsp;these&nbsp;and&nbsp;then&nbsp;fseek()&nbsp;over&nbsp;it<BR/>
</span></span>
<span id= "SL62">
<span class=comment>&nbsp;&nbsp;&nbsp;by&nbsp;using&nbsp;the&nbsp;value&nbsp;in&nbsp;zip_lfh.csize&nbsp;to&nbsp;get&nbsp;the&nbsp;new&nbsp;area.<BR/>
</span></span>
<span id= "SL63">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL64">
<BR/>
</span>
<span id= "SL65">
<span class=keyword>struct</span>&nbsp;&nbsp;&nbsp;<a href="#SL65">zip_lfh</a><BR/>
</span>
<span id= "SL66">
{<BR/>
</span>
<span id= "SL67">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;signature;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;signature,&nbsp;must&nbsp;be&nbsp;0x04034B50&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL68">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;exversion;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;version&nbsp;needed&nbsp;to&nbsp;extract&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL69">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;bitflags;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;general&nbsp;purpose&nbsp;bit&nbsp;flags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL70">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;compression;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;compression&nbsp;method&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL71">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;modtime;<BR/>
</span>
<span id= "SL72">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;moddate;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;last&nbsp;modification&nbsp;time&nbsp;and&nbsp;date&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL73">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;crc32;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;crc32&nbsp;filecheck&nbsp;for&nbsp;file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL74">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;csize;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;compressed&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL75">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;usize;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;uncompressed&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL76">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;fnlength;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;filename&nbsp;length&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL77">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;extralength;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;extra&nbsp;field&nbsp;length&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL78">
};<BR/>
</span>
<span id= "SL79">
<BR/>
</span>
<span id= "SL80">
/*<span class=comment>&nbsp;This&nbsp;is&nbsp;the&nbsp;&quot;local&nbsp;file&nbsp;header&quot;&nbsp;for&nbsp;ARC&nbsp;files.&nbsp;&nbsp;The&nbsp;arc_lfh&nbsp;structure<BR/>
</span></span>
<span id= "SL81">
<span class=comment>&nbsp;&nbsp;&nbsp;preceeds&nbsp;each&nbsp;file&nbsp;in&nbsp;the&nbsp;ARC&nbsp;file,&nbsp;and&nbsp;describes&nbsp;the&nbsp;individual&nbsp;files<BR/>
</span></span>
<span id= "SL82">
<span class=comment>&nbsp;&nbsp;&nbsp;stored&nbsp;there.&nbsp;&nbsp;Note&nbsp;that&nbsp;we&nbsp;read&nbsp;one&nbsp;of&nbsp;these&nbsp;and&nbsp;then&nbsp;fseek()&nbsp;over<BR/>
</span></span>
<span id= "SL83">
<span class=comment>&nbsp;&nbsp;&nbsp;the&nbsp;compressed&nbsp;file&nbsp;by&nbsp;using&nbsp;the&nbsp;value&nbsp;arc_lfh.csize&nbsp;to&nbsp;get&nbsp;the&nbsp;new<BR/>
</span></span>
<span id= "SL84">
<span class=comment>&nbsp;&nbsp;&nbsp;area.<BR/>
</span></span>
<span id= "SL85">
<span class=comment><BR/>
</span></span>
<span id= "SL86">
<span class=comment>&nbsp;&nbsp;&nbsp;Note&nbsp;that&nbsp;ARC&nbsp;and&nbsp;PAK&nbsp;files&nbsp;use&nbsp;this&nbsp;same&nbsp;structure!<BR/>
</span></span>
<span id= "SL87">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL88">
<BR/>
</span>
<span id= "SL89">
<span class=keyword>struct</span>&nbsp;&nbsp;&nbsp;<a href="#SL89">arc_lfh</a><BR/>
</span>
<span id= "SL90">
{<BR/>
</span>
<span id= "SL91">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;marker;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;always&nbsp;01Ah&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL92">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;compression;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;how&nbsp;was&nbsp;this&nbsp;file&nbsp;stored?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL93">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;filename[13];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;filename&nbsp;is&nbsp;always&nbsp;13&nbsp;long&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL94">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;csize;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;compressed&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL95">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;date;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;date&nbsp;of&nbsp;original&nbsp;file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL96">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;time;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;time&nbsp;of&nbsp;original&nbsp;file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL97">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;crc;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;sixteen-bit&nbsp;CRC&nbsp;for&nbsp;this&nbsp;file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL98">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;usize;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;uncompressed&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL99">
};<BR/>
</span>
<span id= "SL100">
<BR/>
</span>
<span id= "SL101">
<BR/>
</span>
<span id= "SL102">
<span class=keyword>struct</span>&nbsp;&nbsp;&nbsp;<a href="#SL102">lzh_lfh</a><BR/>
</span>
<span id= "SL103">
{<BR/>
</span>
<span id= "SL104">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;unknown[7];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;unknown&nbsp;area&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL105">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;csize;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;compressed&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL106">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;usize;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;original&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL107">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;time;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;last&nbsp;modification&nbsp;of&nbsp;date&nbsp;and&nbsp;time&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL108">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;date;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of&nbsp;the&nbsp;stored&nbsp;file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL109">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;unknown3[2];<BR/>
</span>
<span id= "SL110">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;fnlength;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;length&nbsp;of&nbsp;file&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL111">
};<BR/>
</span>
<span id= "SL112">
<BR/>
</span>
<span id= "SL113">
<BR/>
</span>
<span id= "SL114">
<span class=keyword>struct</span>&nbsp;&nbsp;&nbsp;<a href="#SL114">zoo_lfh</a><BR/>
</span>
<span id= "SL115">
{<BR/>
</span>
<span id= "SL116">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;time;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;last&nbsp;modification&nbsp;of&nbsp;date&nbsp;and&nbsp;time&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL117">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;date;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of&nbsp;the&nbsp;stored&nbsp;file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR/>
</span>
<span id= "SL118">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;unknownword;<BR/>
</span>
<span id= "SL119">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;usize;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;original&nbsp;file&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL120">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;csize;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;compressed&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL121">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;unknown[10];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;unknown&nbsp;area&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL122">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;filename[13];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;ASCIIZ&nbsp;filename&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL123">
};<BR/>
</span>
<span id= "SL124">
<BR/>
</span>
<span id= "SL125">
<span class=keyword>struct</span>&nbsp;&nbsp;&nbsp;<a href="#SL125">dwc_lfh</a><BR/>
</span>
<span id= "SL126">
{<BR/>
</span>
<span id= "SL127">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;name[13];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;file&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL128">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;size;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;original&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL129">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;time;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;file&nbsp;timestamp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL130">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;new_size;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;compressed&nbsp;size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL131">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;pos;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;fseek()&nbsp;of&nbsp;this&nbsp;file&nbsp;in&nbsp;archive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL132">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;method;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;compression&nbsp;code&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL133">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;comment_size;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;length&nbsp;of&nbsp;file&nbsp;comment&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL134">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;directory_size;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;length&nbsp;of&nbsp;directory&nbsp;name&nbsp;tag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL135">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;crc;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;file&nbsp;CRC&nbsp;value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL136">
};<BR/>
</span>
<span id= "SL137">
<BR/>
</span>
<span id= "SL138">
<BR/>
</span>
<span id= "SL139">
/*<span class=comment>&nbsp;DWC&nbsp;files&nbsp;are&nbsp;different&nbsp;because&nbsp;they&nbsp;have&nbsp;a&nbsp;big&nbsp;archive-wide&nbsp;information<BR/>
</span></span>
<span id= "SL140">
<span class=comment>&nbsp;&nbsp;&nbsp;area&nbsp;that&nbsp;NJFIND&nbsp;needs&nbsp;to&nbsp;use.&nbsp;&nbsp;This&nbsp;is&nbsp;defined&nbsp;in&nbsp;dwc_block.<BR/>
</span></span>
<span id= "SL141">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL142">
<BR/>
</span>
<span id= "SL143">
<span class=keyword>struct</span>&nbsp;&nbsp;&nbsp;<a href="#SL143">dwc_block</a><BR/>
</span>
<span id= "SL144">
{<BR/>
</span>
<span id= "SL145">
&nbsp;&nbsp;&nbsp;<a href="#SL40">word</a>&nbsp;&nbsp;size;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;size&nbsp;of&nbsp;this&nbsp;structure&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL146">
&nbsp;&nbsp;&nbsp;<a href="#SL39">byte</a>&nbsp;&nbsp;ent_sz;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;size&nbsp;of&nbsp;dwc_lfh&nbsp;structure&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL147">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;header[13];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;name&nbsp;of&nbsp;header&nbsp;file&nbsp;for&nbsp;listings&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL148">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;time;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;timestamp&nbsp;of&nbsp;last&nbsp;archive&nbsp;change&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL149">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;entries;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;entries&nbsp;in&nbsp;the&nbsp;archive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL150">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;id[3];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;&quot;DWC&quot;&nbsp;to&nbsp;identify&nbsp;archive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL151">
};<BR/>
</span>
<span id= "SL152">
<BR/>
</span>
<span id= "SL153">
<BR/>
</span>
<span id= "SL154">
/*<span class=comment>&nbsp;ARJ&nbsp;files&nbsp;are&nbsp;even&nbsp;stranger;&nbsp;they&nbsp;have&nbsp;their&nbsp;own&nbsp;information&nbsp;block<BR/>
</span></span>
<span id= "SL155">
<span class=comment>&nbsp;&nbsp;&nbsp;which&nbsp;is&nbsp;defined&nbsp;here,&nbsp;starting&nbsp;in&nbsp;Version&nbsp;2.10.<BR/>
</span></span>
<span id= "SL156">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL157">
<BR/>
</span>
<span id= "SL158">
<span class=keyword>struct</span>&nbsp;&nbsp;&nbsp;<a href="#SL158">arj_lfh</a><BR/>
</span>
<span id= "SL159">
{<BR/>
</span>
<span id= "SL160">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;wHeaderID;<BR/>
</span>
<span id= "SL161">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;wBasicHeaderSize;<BR/>
</span>
<span id= "SL162">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;bFirstHeaderSize;<BR/>
</span>
<span id= "SL163">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;bArchiverVersionNumber;<BR/>
</span>
<span id= "SL164">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;bMinimumToExtract;<BR/>
</span>
<span id= "SL165">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;bHostOS;<BR/>
</span>
<span id= "SL166">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;bARJFlags;<BR/>
</span>
<span id= "SL167">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;bMethod;<BR/>
</span>
<span id= "SL168">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;bFileType;<BR/>
</span>
<span id= "SL169">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;bReserved;<BR/>
</span>
<span id= "SL170">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>long</span>&nbsp;&nbsp;dwDateTimeStamp;<BR/>
</span>
<span id= "SL171">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>long</span>&nbsp;&nbsp;dwCompressedSize;<BR/>
</span>
<span id= "SL172">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>long</span>&nbsp;&nbsp;dwOriginalSize;<BR/>
</span>
<span id= "SL173">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>long</span>&nbsp;&nbsp;dwOriginalFileCRC;<BR/>
</span>
<span id= "SL174">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;wEntryNamePos;<BR/>
</span>
<span id= "SL175">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;wFileAccessMode;<BR/>
</span>
<span id= "SL176">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;wHostData;<BR/>
</span>
<span id= "SL177">
};<BR/>
</span>
<span id= "SL178">
<BR/>
</span>
<span id= "SL179">
<BR/>
</span>
<span id= "SL180">
<BR/>
</span>
<span id= "SL181">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL182">
<span class=comment>&nbsp;&nbsp;&nbsp;Global&nbsp;Variables<BR/>
</span></span>
<span id= "SL183">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL184">
<BR/>
</span>
<span id= "SL185">
<span class=keyword>unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;stored&nbsp;result&nbsp;of&nbsp;_dos_find*()&nbsp;calls&nbsp;*/</span><BR/>
</span>
<span id= "SL186">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*temp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;temporary&nbsp;pointer&nbsp;for&nbsp;strings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL187">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*extension;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;pointer&nbsp;to&nbsp;file&nbsp;extension&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL188">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>template</span>[_MAX_PATH];&nbsp;/*<span class=comment>&nbsp;template&nbsp;to&nbsp;match&nbsp;files&nbsp;searched&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL189">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*inputfile;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;pointer&nbsp;to&nbsp;wildcard&nbsp;name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL190">
<BR/>
</span>
<span id= "SL191">
<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a><BR/>
</span>
<span id= "SL192">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tempfullname,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;full&nbsp;name&nbsp;of&nbsp;file&nbsp;we're&nbsp;working&nbsp;on&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL193">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;matchname;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;name&nbsp;to&nbsp;match&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL194">
<BR/>
</span>
<span id= "SL195">
<span class=keyword>unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;found&nbsp;=0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;count&nbsp;of&nbsp;found&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL196">
<span class=keyword>unsigned</span>&nbsp;<span class=keyword>long</span>&nbsp;&nbsp;totallength&nbsp;=&nbsp;0L;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;total&nbsp;of&nbsp;file&nbsp;lengths&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL197">
<BR/>
</span>
<span id= "SL198">
<span class=keyword>unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archivefound&nbsp;=&nbsp;0;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;count&nbsp;of&nbsp;found&nbsp;files&nbsp;in&nbsp;archves&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL199">
<span class=keyword>unsigned</span>&nbsp;<span class=keyword>long</span>&nbsp;&nbsp;archivetotallength&nbsp;=&nbsp;0L;<BR/>
</span>
<span id= "SL200">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;total&nbsp;file&nbsp;lengths&nbsp;of&nbsp;archive&nbsp;files.*/</span><BR/>
</span>
<span id= "SL201">
<BR/>
</span>
<span id= "SL202">
<span class=keyword>struct</span>&nbsp;<a href="#SL65">zip_lfh</a>&nbsp;zipworker;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;workspace&nbsp;for&nbsp;zip&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL203">
<span class=keyword>struct</span>&nbsp;<a href="#SL89">arc_lfh</a>&nbsp;arcworker;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;workspace&nbsp;for&nbsp;arc&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL204">
<span class=keyword>struct</span>&nbsp;<a href="#SL102">lzh_lfh</a>&nbsp;lzhworker;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;workspace&nbsp;for&nbsp;lzh&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL205">
<span class=keyword>struct</span>&nbsp;<a href="#SL114">zoo_lfh</a>&nbsp;zooworker;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;workspace&nbsp;for&nbsp;zoo&nbsp;files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL206">
<BR/>
</span>
<span id= "SL207">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchzips&nbsp;=&nbsp;TRUE;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;flags&nbsp;for&nbsp;options&nbsp;on&nbsp;searching&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL208">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchlzhs&nbsp;=&nbsp;TRUE;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;different&nbsp;archive&nbsp;types&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL209">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchzoos&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL210">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searcharcs&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL211">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchpaks&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL212">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searchdwcs&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL213">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;searcharjs&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL214">
<BR/>
</span>
<span id= "SL215">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;verbose&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;TRUE&nbsp;for&nbsp;verbose&nbsp;mode&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL216">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;progress&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;TRUE&nbsp;to&nbsp;show&nbsp;progress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL217">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;totalsmode&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;/*<span class=comment>&nbsp;TURE&nbsp;for&nbsp;display&nbsp;totals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL218">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;changedrive&nbsp;=&nbsp;FALSE;&nbsp;/*<span class=comment>&nbsp;set&nbsp;TRUE&nbsp;if&nbsp;user&nbsp;changed&nbsp;disks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL219">
<BR/>
</span>
<span id= "SL220">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;broken&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;set&nbsp;true&nbsp;if&nbsp;user&nbsp;does&nbsp;CTRL+BREAK&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL221">
<BR/>
</span>
<span id= "SL222">
<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alldrives&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;search&nbsp;through&nbsp;all&nbsp;drives&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL223">
<BR/>
</span>
<span id= "SL224">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fiftyspaces[55];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;a&nbsp;bunch&nbsp;of&nbsp;spaces&nbsp;for&nbsp;printmatch()&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL225">
<BR/>
</span>
<span id= "SL226">
<span class=keyword>unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drivecount;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;used&nbsp;to&nbsp;change&nbsp;disk&nbsp;drives&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL227">
<span class=keyword>unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newdrive;<BR/>
</span>
<span id= "SL228">
<span class=keyword>unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;olddrive;<BR/>
</span>
<span id= "SL229">
<span class=keyword>unsigned</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lastdrive;<BR/>
</span>
<span id= "SL230">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newdriveletter[3];<BR/>
</span>
<span id= "SL231">
<BR/>
</span>
<span id= "SL232">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;drivelist[28];&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;list&nbsp;of&nbsp;drives&nbsp;to&nbsp;search&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL233">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*currentdrive;<BR/>
</span>
<span id= "SL234">
<BR/>
</span>
<span id= "SL235">
<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;szFileNameBuffer[4096];<BR/>
</span>
<span id= "SL236">
<BR/>
</span>
<span id= "SL237">
<BR/>
</span>
<span id= "SL238">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL239">
<span class=comment>&nbsp;&nbsp;&nbsp;Global&nbsp;Constants<BR/>
</span></span>
<span id= "SL240">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL241">
<BR/>
</span>
<span id= "SL242">
<span class=keyword>const</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*fmessageread&nbsp;&nbsp;=&nbsp;&quot;<span class=literal>Couldn't&nbsp;open&nbsp;file&nbsp;\"%s\"&nbsp;for&nbsp;read.\n&quot;</span>;<BR/>
</span>
<span id= "SL243">
<span class=keyword>const</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*readbinary&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&quot;<span class=literal>rb&quot;</span>;<BR/>
</span>
<span id= "SL244">
<span class=keyword>const</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*notsearching&nbsp;&nbsp;=&nbsp;&quot;<span class=literal>Not&nbsp;searching&nbsp;%s&nbsp;files\n&quot;</span>;<BR/>
</span>
<span id= "SL245">
<span class=keyword>const</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*eraseline&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&quot;<span class=literal>\t\t\t\t\t\t\t\t\t\r&quot;</span>;<BR/>
</span>
<span id= "SL246">
<span class=keyword>const</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*wfi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&quot;<span class=literal>&nbsp;was&nbsp;found&nbsp;in&nbsp;&quot;</span>;<BR/>
</span>
<span id= "SL247">
<span class=keyword>const</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*swfis&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&quot;<span class=literal>%s&nbsp;was&nbsp;found&nbsp;in&nbsp;%s%s&quot;</span>;<BR/>
</span>
<span id= "SL248">
<BR/>
</span>
<span id= "SL249">
<span class=keyword>const</span>&nbsp;<span class=keyword>char</span>&nbsp;*month3names[12]&nbsp;=<BR/>
</span>
<span id= "SL250">
{<BR/>
</span>
<span id= "SL251">
&nbsp;&nbsp;&nbsp;&quot;<span class=literal>Jan&quot;</span>,&nbsp;&quot;<span class=literal>Feb&quot;</span>,&nbsp;&quot;<span class=literal>Mar&quot;</span>,&nbsp;&quot;<span class=literal>Apr&quot;</span>,&nbsp;&quot;<span class=literal>May&quot;</span>,&nbsp;&quot;<span class=literal>Jun&quot;</span>,<BR/>
</span>
<span id= "SL252">
&nbsp;&nbsp;&nbsp;&quot;<span class=literal>Jul&quot;</span>,&nbsp;&quot;<span class=literal>Aug&quot;</span>,&nbsp;&quot;<span class=literal>Sep&quot;</span>,&nbsp;&quot;<span class=literal>Oct&quot;</span>,&nbsp;&quot;<span class=literal>Nov&quot;</span>,&nbsp;&quot;<span class=literal>Dec&quot;</span><BR/>
</span>
<span id= "SL253">
};<BR/>
</span>
<span id= "SL254">
<BR/>
</span>
<span id= "SL255">
<BR/>
</span>
<span id= "SL256">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL257">
<span class=comment>&nbsp;&nbsp;&nbsp;ANSI-C&nbsp;Standard&nbsp;Function&nbsp;Prototypes<BR/>
</span></span>
<span id= "SL258">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL259">
<BR/>
</span>
<span id= "SL260">
<span class=keyword>void</span>&nbsp;&nbsp;processzip(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL260">find_t</a>&nbsp;*info);<BR/>
</span>
<span id= "SL261">
<span class=keyword>void</span>&nbsp;&nbsp;processpak(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL261">find_t</a>&nbsp;*info);<BR/>
</span>
<span id= "SL262">
<span class=keyword>void</span>&nbsp;&nbsp;processarc(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL262">find_t</a>&nbsp;*info);<BR/>
</span>
<span id= "SL263">
<span class=keyword>void</span>&nbsp;&nbsp;processlzh(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL263">find_t</a>&nbsp;*info);<BR/>
</span>
<span id= "SL264">
<span class=keyword>void</span>&nbsp;&nbsp;processzoo(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL264">find_t</a>&nbsp;*info);<BR/>
</span>
<span id= "SL265">
<span class=keyword>void</span>&nbsp;&nbsp;processdwc(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL265">find_t</a>&nbsp;*info);<BR/>
</span>
<span id= "SL266">
<span class=keyword>void</span>&nbsp;&nbsp;processarj(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL266">find_t</a>&nbsp;*info);<BR/>
</span>
<span id= "SL267">
<BR/>
</span>
<span id= "SL268">
<span class=keyword>void</span>&nbsp;&nbsp;printinside(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>char</span>&nbsp;*archive,&nbsp;<a href="#SL41">dword</a>&nbsp;filesize,&nbsp;<a href="#SL40">word</a>&nbsp;date,&nbsp;<a href="#SL40">word</a>&nbsp;time);<BR/>
</span>
<span id= "SL269">
<span class=keyword>void</span>&nbsp;&nbsp;printinsidedwc(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>char</span>&nbsp;*archive,&nbsp;<a href="#SL41">dword</a>&nbsp;filesize,&nbsp;time_t&nbsp;date);<BR/>
</span>
<span id= "SL270">
<span class=keyword>void</span>&nbsp;&nbsp;printmatch(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<a href="#SL41">dword</a>&nbsp;filesize,&nbsp;<a href="#SL40">word</a>&nbsp;date,&nbsp;<a href="#SL40">word</a>&nbsp;time);<BR/>
</span>
<span id= "SL271">
<span class=keyword>void</span>&nbsp;&nbsp;printdate(<a href="#SL40">word</a>&nbsp;date);<BR/>
</span>
<span id= "SL272">
<span class=keyword>void</span>&nbsp;&nbsp;printtime(<a href="#SL40">word</a>&nbsp;time);<BR/>
</span>
<span id= "SL273">
<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;comparenames(<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;*left,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;*right);<BR/>
</span>
<span id= "SL274">
<span class=keyword>void</span>&nbsp;&nbsp;maketemplate(<span class=keyword>void</span>);<BR/>
</span>
<span id= "SL275">
<span class=keyword>void</span>&nbsp;&nbsp;makefullname(<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;*ffn,&nbsp;<span class=keyword>char</span>&nbsp;*path);<BR/>
</span>
<span id= "SL276">
<span class=keyword>void</span>&nbsp;&nbsp;searchdir(<span class=keyword>char</span>&nbsp;*dirname);<BR/>
</span>
<span id= "SL277">
<span class=keyword>void</span>&nbsp;&nbsp;showusage(<span class=keyword>void</span>);<BR/>
</span>
<span id= "SL278">
<span class=keyword>void</span>&nbsp;&nbsp;handleoption(<span class=keyword>char</span>&nbsp;*option,&nbsp;<a href="#SL42">boolean</a>&nbsp;inenvironment);<BR/>
</span>
<span id= "SL279">
<span class=keyword>void</span>&nbsp;&nbsp;breakout(<span class=keyword>void</span>);<BR/>
</span>
<span id= "SL280">
<span class=keyword>void</span>&nbsp;&nbsp;builddrivelist(<span class=keyword>void</span>);<BR/>
</span>
<span id= "SL281">
<span class=keyword>void</span>&nbsp;&nbsp;handleenvironment(<span class=keyword>void</span>);<BR/>
</span>
<span id= "SL282">
<span class=keyword>void</span>&nbsp;&nbsp;main(<span class=keyword>int</span>&nbsp;argc,&nbsp;<span class=keyword>char</span>&nbsp;*argv[]);<BR/>
</span>
<span id= "SL283">
<BR/>
</span>
<span id= "SL284">
<BR/>
</span>
<span id= "SL285">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL286">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL287">
<BR/>
</span>
<span id= "SL288">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL260">processzip</a>(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL288">find_t</a>&nbsp;*info)<BR/>
</span>
<span id= "SL289">
{<BR/>
</span>
<span id= "SL290">
&nbsp;&nbsp;&nbsp;FILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*zipfile;<BR/>
</span>
<span id= "SL291">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*insidefilename&nbsp;=&nbsp;NULL;<BR/>
</span>
<span id= "SL292">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;&nbsp;zipfullname;<BR/>
</span>
<span id= "SL293">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*temporary;<BR/>
</span>
<span id= "SL294">
<BR/>
</span>
<span id= "SL295">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL296">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>processzip(\"%s\")\n&quot;</span>,&nbsp;<a href="#SL288">info</a>->name);<BR/>
</span>
<span id= "SL297">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL298">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL299">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;if&nbsp;the&nbsp;file&nbsp;name&nbsp;doesn't&nbsp;match&nbsp;the&nbsp;requested&nbsp;template&nbsp;name,<BR/>
</span></span>
<span id= "SL300">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;now&nbsp;and&nbsp;don't&nbsp;even&nbsp;bother&nbsp;opening&nbsp;the&nbsp;zip&nbsp;file.<BR/>
</span></span>
<span id= "SL301">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL302">
<BR/>
</span>
<span id= "SL303">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL192">tempfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL304">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL305">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;found++;<BR/>
</span>
<span id= "SL306">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL307">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL308">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL270">printmatch</a>(<a href="#SL288">filename</a>,&nbsp;<a href="#SL288">info</a>->size,&nbsp;<a href="#SL288">info</a>->wr_date,&nbsp;<a href="#SL288">info</a>->wr_time);<BR/>
</span>
<span id= "SL309">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL310">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s\n&quot;</span>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL288">filename</a>);<BR/>
</span>
<span id= "SL311">
<BR/>
</span>
<span id= "SL312">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL196">totallength</a>&nbsp;+=&nbsp;<a href="#SL288">info</a>->size;<BR/>
</span>
<span id= "SL313">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL314">
<BR/>
</span>
<span id= "SL315">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL207">searchzips</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL316">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL317">
<BR/>
</span>
<span id= "SL318">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;open&nbsp;the&nbsp;zip&nbsp;file&nbsp;by&nbsp;name&nbsp;and&nbsp;see&nbsp;if&nbsp;it&nbsp;was&nbsp;successful.<BR/>
</span></span>
<span id= "SL319">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL320">
<BR/>
</span>
<span id= "SL321">
&nbsp;&nbsp;&nbsp;zipfile&nbsp;=&nbsp;fopen(<a href="#SL288">filename</a>,&nbsp;<a href="#SL243">readbinary</a>);<BR/>
</span>
<span id= "SL322">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(zipfile&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL323">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL324">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL242">fmessageread</a>,&nbsp;<a href="#SL288">filename</a>);<BR/>
</span>
<span id= "SL325">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL326">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL327">
<BR/>
</span>
<span id= "SL328">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;loop&nbsp;through&nbsp;the&nbsp;whole&nbsp;file<BR/>
</span></span>
<span id= "SL329">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL330">
<BR/>
</span>
<span id= "SL331">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>(!feof(zipfile))<BR/>
</span>
<span id= "SL332">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL333">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;read&nbsp;the&nbsp;local&nbsp;file&nbsp;header.<BR/>
</span></span>
<span id= "SL334">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;we&nbsp;don't&nbsp;get&nbsp;it,&nbsp;break&nbsp;the&nbsp;loop.<BR/>
</span></span>
<span id= "SL335">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;At&nbsp;this&nbsp;same&nbsp;time,&nbsp;check&nbsp;it&nbsp;for&nbsp;a&nbsp;valid&nbsp;signature.<BR/>
</span></span>
<span id= "SL336">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL337">
<BR/>
</span>
<span id= "SL338">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(fread(&amp;<a href="#SL202">zipworker</a>,&nbsp;<span class=keyword>sizeof</span>(<span class=keyword>struct</span>&nbsp;<a href="#SL65">zip_lfh</a>),&nbsp;(size_t)&nbsp;1,&nbsp;zipfile)&nbsp;!=&nbsp;1)<BR/>
</span>
<span id= "SL339">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL340">
<BR/>
</span>
<span id= "SL341">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL202">zipworker</a>.signature&nbsp;!=&nbsp;0x04034B50)<BR/>
</span>
<span id= "SL342">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL343">
<BR/>
</span>
<span id= "SL344">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;free&nbsp;the&nbsp;temporary&nbsp;file&nbsp;name&nbsp;area<BR/>
</span></span>
<span id= "SL345">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;allocate&nbsp;a&nbsp;space&nbsp;for&nbsp;the&nbsp;new&nbsp;name.<BR/>
</span></span>
<span id= "SL346">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;read&nbsp;it&nbsp;from&nbsp;the&nbsp;zip&nbsp;file.<BR/>
</span></span>
<span id= "SL347">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL348">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL291">insidefilename</a>&nbsp;=&nbsp;<a href="#SL235">szFileNameBuffer</a>;<BR/>
</span>
<span id= "SL349">
<BR/>
</span>
<span id= "SL350">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(fread((<span class=keyword>void</span>&nbsp;*)&nbsp;<a href="#SL291">insidefilename</a>,&nbsp;&nbsp;<a href="#SL202">zipworker</a>.fnlength,&nbsp;(size_t)&nbsp;1,&nbsp;zipfile)&nbsp;!=&nbsp;1)<BR/>
</span>
<span id= "SL351">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL352">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL291">insidefilename</a>[<a href="#SL202">zipworker</a>.fnlength]&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL353">
<BR/>
</span>
<span id= "SL354">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL293">temporary</a>&nbsp;=&nbsp;strrchr(<a href="#SL291">insidefilename</a>,&nbsp;'<span class=literal>/'</span>);<BR/>
</span>
<span id= "SL355">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL293">temporary</a>&nbsp;!=&nbsp;NULL)<BR/>
</span>
<span id= "SL356">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL293">temporary</a>++;<BR/>
</span>
<span id= "SL357">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL358">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL293">temporary</a>&nbsp;=&nbsp;<a href="#SL291">insidefilename</a>;<BR/>
</span>
<span id= "SL359">
<BR/>
</span>
<span id= "SL360">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL275">makefullname</a>(&amp;<a href="#SL292">zipfullname</a>,&nbsp;<a href="#SL293">temporary</a>);<BR/>
</span>
<span id= "SL361">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL292">zipfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL362">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL363">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archivefound++;<BR/>
</span>
<span id= "SL364">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL199">archivetotallength</a>&nbsp;+=&nbsp;<a href="#SL202">zipworker</a>.usize;<BR/>
</span>
<span id= "SL365">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL366">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL367">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL268">printinside</a>(<a href="#SL288">filename</a>,&nbsp;<a href="#SL293">temporary</a>,&nbsp;<a href="#SL202">zipworker</a>.usize,<BR/>
</span>
<span id= "SL368">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL202">zipworker</a>.moddate,&nbsp;<a href="#SL202">zipworker</a>.modtime);<BR/>
</span>
<span id= "SL369">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL370">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL371">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL247">swfis</a>,&nbsp;<a href="#SL293">temporary</a>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL288">filename</a>);<BR/>
</span>
<span id= "SL372">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL373">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL374">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL375">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL376">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL377">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s\t\t\r&quot;</span>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL293">temporary</a>);<BR/>
</span>
<span id= "SL378">
<BR/>
</span>
<span id= "SL379">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL380">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>temporary&nbsp;=&nbsp;\"%s\"\n&quot;</span>,&nbsp;<a href="#SL293">temporary</a>);<BR/>
</span>
<span id= "SL381">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL382">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL383">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;seek&nbsp;around&nbsp;the&nbsp;compressed&nbsp;file.<BR/>
</span></span>
<span id= "SL384">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL385">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fseek(zipfile,&nbsp;<a href="#SL202">zipworker</a>.csize&nbsp;+&nbsp;<a href="#SL202">zipworker</a>.extralength,&nbsp;SEEK_CUR);<BR/>
</span>
<span id= "SL386">
<BR/>
</span>
<span id= "SL387">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;at&nbsp;this&nbsp;point,&nbsp;the&nbsp;file&nbsp;pointer&nbsp;is&nbsp;once&nbsp;again&nbsp;at&nbsp;the<BR/>
</span></span>
<span id= "SL388">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next&nbsp;local&nbsp;file&nbsp;header&nbsp;...<BR/>
</span></span>
<span id= "SL389">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL390">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL391">
<BR/>
</span>
<span id= "SL392">
<BR/>
</span>
<span id= "SL393">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL394">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL245">eraseline</a>);<BR/>
</span>
<span id= "SL395">
&nbsp;&nbsp;&nbsp;fclose(zipfile);<BR/>
</span>
<span id= "SL396">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL397">
}<BR/>
</span>
<span id= "SL398">
<BR/>
</span>
<span id= "SL399">
<BR/>
</span>
<span id= "SL400">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL401">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL402">
<BR/>
</span>
<span id= "SL403">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL261">processpak</a>(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL403">find_t</a>&nbsp;*info)<BR/>
</span>
<span id= "SL404">
{<BR/>
</span>
<span id= "SL405">
&nbsp;&nbsp;&nbsp;FILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*pakfile;<BR/>
</span>
<span id= "SL406">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;&nbsp;pakfullname;<BR/>
</span>
<span id= "SL407">
<BR/>
</span>
<span id= "SL408">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL409">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>processpak(\"%s\")\n&quot;</span>,&nbsp;<a href="#SL403">info</a>->name);<BR/>
</span>
<span id= "SL410">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL411">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL412">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;if&nbsp;the&nbsp;file&nbsp;name&nbsp;doesn't&nbsp;match&nbsp;the&nbsp;requested&nbsp;template&nbsp;name,<BR/>
</span></span>
<span id= "SL413">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;now&nbsp;and&nbsp;don't&nbsp;even&nbsp;bother&nbsp;opening&nbsp;the&nbsp;zip&nbsp;file.<BR/>
</span></span>
<span id= "SL414">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL415">
<BR/>
</span>
<span id= "SL416">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL192">tempfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL417">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL418">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;found++;<BR/>
</span>
<span id= "SL419">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL420">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL421">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL270">printmatch</a>(<a href="#SL403">filename</a>,&nbsp;<a href="#SL403">info</a>->size,&nbsp;<a href="#SL403">info</a>->wr_date,&nbsp;<a href="#SL403">info</a>->wr_time);<BR/>
</span>
<span id= "SL422">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL423">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s\n&quot;</span>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL403">filename</a>);<BR/>
</span>
<span id= "SL424">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL196">totallength</a>&nbsp;+=&nbsp;<a href="#SL403">info</a>->size;<BR/>
</span>
<span id= "SL425">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL426">
<BR/>
</span>
<span id= "SL427">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL211">searchpaks</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL428">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL429">
<BR/>
</span>
<span id= "SL430">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;open&nbsp;the&nbsp;pak&nbsp;file&nbsp;by&nbsp;name&nbsp;and&nbsp;see&nbsp;if&nbsp;it&nbsp;was&nbsp;successful.<BR/>
</span></span>
<span id= "SL431">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL432">
<BR/>
</span>
<span id= "SL433">
&nbsp;&nbsp;&nbsp;pakfile&nbsp;=&nbsp;fopen(<a href="#SL403">filename</a>,&nbsp;<a href="#SL243">readbinary</a>);<BR/>
</span>
<span id= "SL434">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(pakfile&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL435">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL436">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL242">fmessageread</a>,&nbsp;<a href="#SL403">filename</a>);<BR/>
</span>
<span id= "SL437">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL438">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL439">
<BR/>
</span>
<span id= "SL440">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;loop&nbsp;through&nbsp;the&nbsp;whole&nbsp;file<BR/>
</span></span>
<span id= "SL441">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL442">
<BR/>
</span>
<span id= "SL443">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>(!feof(pakfile))<BR/>
</span>
<span id= "SL444">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL445">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;read&nbsp;the&nbsp;local&nbsp;file&nbsp;header.<BR/>
</span></span>
<span id= "SL446">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;we&nbsp;don't&nbsp;get&nbsp;it,&nbsp;break&nbsp;the&nbsp;loop.<BR/>
</span></span>
<span id= "SL447">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL448">
<BR/>
</span>
<span id= "SL449">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(fread(&amp;<a href="#SL203">arcworker</a>,&nbsp;<span class=keyword>sizeof</span>(<span class=keyword>struct</span>&nbsp;<a href="#SL89">arc_lfh</a>),&nbsp;(size_t)&nbsp;1,&nbsp;pakfile)&nbsp;!=&nbsp;1)<BR/>
</span>
<span id= "SL450">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL451">
<BR/>
</span>
<span id= "SL452">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;check&nbsp;the&nbsp;compression&nbsp;method.<BR/>
</span></span>
<span id= "SL453">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;it&nbsp;is&nbsp;zero,&nbsp;the&nbsp;pak&nbsp;file&nbsp;is&nbsp;over.<BR/>
</span></span>
<span id= "SL454">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL455">
<BR/>
</span>
<span id= "SL456">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL203">arcworker</a>.compression&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL457">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL458">
<BR/>
</span>
<span id= "SL459">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL275">makefullname</a>(&amp;<a href="#SL406">pakfullname</a>,&nbsp;<a href="#SL203">arcworker</a>.<a href="#SL403">filename</a>);<BR/>
</span>
<span id= "SL460">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL406">pakfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL461">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL462">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archivefound++;<BR/>
</span>
<span id= "SL463">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL199">archivetotallength</a>&nbsp;+=&nbsp;<a href="#SL203">arcworker</a>.usize;<BR/>
</span>
<span id= "SL464">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL465">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL466">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL268">printinside</a>(<a href="#SL403">filename</a>,&nbsp;<a href="#SL203">arcworker</a>.<a href="#SL403">filename</a>,&nbsp;<a href="#SL203">arcworker</a>.usize,<BR/>
</span>
<span id= "SL467">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL203">arcworker</a>.date,&nbsp;<a href="#SL203">arcworker</a>.time);<BR/>
</span>
<span id= "SL468">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL469">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL470">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL247">swfis</a>,&nbsp;<a href="#SL203">arcworker</a>.<a href="#SL403">filename</a>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL403">filename</a>);<BR/>
</span>
<span id= "SL471">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL472">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL473">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL474">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL475">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL476">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s\t\t\r&quot;</span>,&nbsp;<a href="#SL203">arcworker</a>.<a href="#SL403">filename</a>);<BR/>
</span>
<span id= "SL477">
<BR/>
</span>
<span id= "SL478">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL479">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>filename&nbsp;=&nbsp;\"%s\"\n&quot;</span>,&nbsp;<a href="#SL203">arcworker</a>.<a href="#SL403">filename</a>);<BR/>
</span>
<span id= "SL480">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL481">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL482">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;seek&nbsp;around&nbsp;the&nbsp;compressed&nbsp;file.<BR/>
</span></span>
<span id= "SL483">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL484">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fseek(pakfile,&nbsp;<a href="#SL203">arcworker</a>.csize,&nbsp;SEEK_CUR);<BR/>
</span>
<span id= "SL485">
<BR/>
</span>
<span id= "SL486">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;at&nbsp;this&nbsp;point,&nbsp;the&nbsp;file&nbsp;pointer&nbsp;is&nbsp;once&nbsp;again&nbsp;at&nbsp;the<BR/>
</span></span>
<span id= "SL487">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next&nbsp;local&nbsp;file&nbsp;header&nbsp;...<BR/>
</span></span>
<span id= "SL488">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL489">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL490">
<BR/>
</span>
<span id= "SL491">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL492">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL245">eraseline</a>);<BR/>
</span>
<span id= "SL493">
&nbsp;&nbsp;&nbsp;fclose(pakfile);<BR/>
</span>
<span id= "SL494">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL495">
}<BR/>
</span>
<span id= "SL496">
<BR/>
</span>
<span id= "SL497">
<BR/>
</span>
<span id= "SL498">
<BR/>
</span>
<span id= "SL499">
<BR/>
</span>
<span id= "SL500">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL501">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL502">
<BR/>
</span>
<span id= "SL503">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL504">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL505">
<BR/>
</span>
<span id= "SL506">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL264">processzoo</a>(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL506">find_t</a>&nbsp;*info)<BR/>
</span>
<span id= "SL507">
{<BR/>
</span>
<span id= "SL508">
&nbsp;&nbsp;&nbsp;FILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*zoofile;<BR/>
</span>
<span id= "SL509">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;&nbsp;zoofullname;<BR/>
</span>
<span id= "SL510">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thischar;<BR/>
</span>
<span id= "SL511">
<BR/>
</span>
<span id= "SL512">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL513">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>processzoo(\"%s\")\n&quot;</span>,&nbsp;<a href="#SL506">info</a>->name);<BR/>
</span>
<span id= "SL514">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL515">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL516">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;if&nbsp;the&nbsp;file&nbsp;name&nbsp;doesn't&nbsp;match&nbsp;the&nbsp;requested&nbsp;template&nbsp;name,<BR/>
</span></span>
<span id= "SL517">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;now&nbsp;and&nbsp;don't&nbsp;even&nbsp;bother&nbsp;opening&nbsp;the&nbsp;zip&nbsp;file.<BR/>
</span></span>
<span id= "SL518">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL519">
<BR/>
</span>
<span id= "SL520">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL192">tempfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL521">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL522">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL523">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL524">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL270">printmatch</a>(<a href="#SL506">filename</a>,&nbsp;<a href="#SL506">info</a>->size,&nbsp;<a href="#SL506">info</a>->wr_date,&nbsp;<a href="#SL506">info</a>->wr_time);<BR/>
</span>
<span id= "SL525">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL526">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s\n&quot;</span>,&nbsp;<a href="#SL506">filename</a>);<BR/>
</span>
<span id= "SL527">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;found++;<BR/>
</span>
<span id= "SL528">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL196">totallength</a>&nbsp;+=&nbsp;<a href="#SL506">info</a>->size;<BR/>
</span>
<span id= "SL529">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL530">
<BR/>
</span>
<span id= "SL531">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL209">searchzoos</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL532">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL533">
<BR/>
</span>
<span id= "SL534">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;open&nbsp;the&nbsp;zoo&nbsp;file&nbsp;by&nbsp;name&nbsp;and&nbsp;see&nbsp;if&nbsp;it&nbsp;was&nbsp;successful.<BR/>
</span></span>
<span id= "SL535">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL536">
<BR/>
</span>
<span id= "SL537">
&nbsp;&nbsp;&nbsp;zoofile&nbsp;=&nbsp;fopen(<a href="#SL506">filename</a>,&nbsp;<a href="#SL243">readbinary</a>);<BR/>
</span>
<span id= "SL538">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(zoofile&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL539">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL540">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL242">fmessageread</a>,&nbsp;<a href="#SL506">filename</a>);<BR/>
</span>
<span id= "SL541">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL542">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL543">
<BR/>
</span>
<span id= "SL544">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;first,&nbsp;skip&nbsp;over&nbsp;the&nbsp;ZOO&nbsp;FILE&nbsp;message<BR/>
</span></span>
<span id= "SL545">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL546">
<BR/>
</span>
<span id= "SL547">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(!feof(zoofile))<BR/>
</span>
<span id= "SL548">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL549">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL510">thischar</a>&nbsp;=&nbsp;fgetc(zoofile);<BR/>
</span>
<span id= "SL550">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL510">thischar</a>&nbsp;==&nbsp;0x1A)<BR/>
</span>
<span id= "SL551">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL552">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL553">
<BR/>
</span>
<span id= "SL554">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(feof(zoofile))<BR/>
</span>
<span id= "SL555">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL556">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose(zoofile);<BR/>
</span>
<span id= "SL557">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL558">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL559">
<BR/>
</span>
<span id= "SL560">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;skip&nbsp;over&nbsp;more&nbsp;header&nbsp;junk&nbsp;*/</span><BR/>
</span>
<span id= "SL561">
<BR/>
</span>
<span id= "SL562">
&nbsp;&nbsp;&nbsp;fseek(zoofile,&nbsp;38L,&nbsp;SEEK_CUR);<BR/>
</span>
<span id= "SL563">
<BR/>
</span>
<span id= "SL564">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;loop&nbsp;through&nbsp;the&nbsp;whole&nbsp;file<BR/>
</span></span>
<span id= "SL565">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL566">
<BR/>
</span>
<span id= "SL567">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>(!feof(zoofile))<BR/>
</span>
<span id= "SL568">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL569">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;read&nbsp;the&nbsp;local&nbsp;file&nbsp;header.<BR/>
</span></span>
<span id= "SL570">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;we&nbsp;don't&nbsp;get&nbsp;it,&nbsp;break&nbsp;the&nbsp;loop.<BR/>
</span></span>
<span id= "SL571">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL572">
<BR/>
</span>
<span id= "SL573">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(fread(&amp;<a href="#SL205">zooworker</a>,&nbsp;<span class=keyword>sizeof</span>(<span class=keyword>struct</span>&nbsp;<a href="#SL114">zoo_lfh</a>),&nbsp;(size_t)&nbsp;1,&nbsp;zoofile)&nbsp;!=&nbsp;1)<BR/>
</span>
<span id= "SL574">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL575">
<BR/>
</span>
<span id= "SL576">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;check&nbsp;the&nbsp;compression&nbsp;method.<BR/>
</span></span>
<span id= "SL577">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;it&nbsp;is&nbsp;zero,&nbsp;the&nbsp;pak&nbsp;file&nbsp;is&nbsp;over.<BR/>
</span></span>
<span id= "SL578">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL579">
<BR/>
</span>
<span id= "SL580">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL205">zooworker</a>.<a href="#SL506">filename</a>[0]&nbsp;==&nbsp;'<span class=literal>\0'</span>)<BR/>
</span>
<span id= "SL581">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL582">
<BR/>
</span>
<span id= "SL583">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strupr(<a href="#SL205">zooworker</a>.<a href="#SL506">filename</a>);<BR/>
</span>
<span id= "SL584">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL275">makefullname</a>(&amp;<a href="#SL509">zoofullname</a>,&nbsp;<a href="#SL205">zooworker</a>.<a href="#SL506">filename</a>);<BR/>
</span>
<span id= "SL585">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL509">zoofullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL586">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL587">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archivefound++;<BR/>
</span>
<span id= "SL588">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL196">totallength</a>&nbsp;+=&nbsp;<a href="#SL205">zooworker</a>.usize;<BR/>
</span>
<span id= "SL589">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL590">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL591">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL268">printinside</a>(<a href="#SL506">filename</a>,&nbsp;<a href="#SL205">zooworker</a>.<a href="#SL506">filename</a>,&nbsp;<a href="#SL205">zooworker</a>.usize,<BR/>
</span>
<span id= "SL592">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL205">zooworker</a>.date,&nbsp;<a href="#SL205">zooworker</a>.time);<BR/>
</span>
<span id= "SL593">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL594">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL595">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL247">swfis</a>,&nbsp;<a href="#SL205">zooworker</a>.<a href="#SL506">filename</a>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL506">filename</a>);<BR/>
</span>
<span id= "SL596">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL597">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL598">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL599">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL600">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL601">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s\t\t\r&quot;</span>,&nbsp;<a href="#SL205">zooworker</a>.<a href="#SL506">filename</a>);<BR/>
</span>
<span id= "SL602">
<BR/>
</span>
<span id= "SL603">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL604">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>filename&nbsp;=&nbsp;\"%s\"\n&quot;</span>,&nbsp;<a href="#SL205">zooworker</a>.<a href="#SL506">filename</a>);<BR/>
</span>
<span id= "SL605">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL606">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL607">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;seek&nbsp;around&nbsp;the&nbsp;compressed&nbsp;file.<BR/>
</span></span>
<span id= "SL608">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL609">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fseek(zoofile,&nbsp;<a href="#SL205">zooworker</a>.csize+34L,&nbsp;SEEK_CUR);<BR/>
</span>
<span id= "SL610">
<BR/>
</span>
<span id= "SL611">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;at&nbsp;this&nbsp;point,&nbsp;the&nbsp;file&nbsp;pointer&nbsp;is&nbsp;once&nbsp;again&nbsp;at&nbsp;the<BR/>
</span></span>
<span id= "SL612">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;next&nbsp;local&nbsp;file&nbsp;header&nbsp;...<BR/>
</span></span>
<span id= "SL613">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL614">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL615">
<BR/>
</span>
<span id= "SL616">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL617">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL245">eraseline</a>);<BR/>
</span>
<span id= "SL618">
&nbsp;&nbsp;&nbsp;fclose(zoofile);<BR/>
</span>
<span id= "SL619">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL620">
}<BR/>
</span>
<span id= "SL621">
<BR/>
</span>
<span id= "SL622">
<BR/>
</span>
<span id= "SL623">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL624">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL625">
<BR/>
</span>
<span id= "SL626">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL265">processdwc</a>(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL626">find_t</a>&nbsp;*info)<BR/>
</span>
<span id= "SL627">
{<BR/>
</span>
<span id= "SL628">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;buff[256];<BR/>
</span>
<span id= "SL629">
&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;entrycount;<BR/>
</span>
<span id= "SL630">
&nbsp;&nbsp;&nbsp;<span class=keyword>long</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l;<BR/>
</span>
<span id= "SL631">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;num;<BR/>
</span>
<span id= "SL632">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i=-1;<BR/>
</span>
<span id= "SL633">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;j;<BR/>
</span>
<span id= "SL634">
&nbsp;&nbsp;&nbsp;FILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*dwcfile;<BR/>
</span>
<span id= "SL635">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL143">dwc_block</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archive_block;<BR/>
</span>
<span id= "SL636">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL125">dwc_lfh</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dwc_entry;<BR/>
</span>
<span id= "SL637">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;&nbsp;dwcfullname;<BR/>
</span>
<span id= "SL638">
<BR/>
</span>
<span id= "SL639">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL640">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>processdwc(\"%s\")\n&quot;</span>,&nbsp;<a href="#SL626">info</a>->name);<BR/>
</span>
<span id= "SL641">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL642">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL643">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;if&nbsp;the&nbsp;file&nbsp;name&nbsp;doesn't&nbsp;match&nbsp;the&nbsp;requested&nbsp;template&nbsp;name,<BR/>
</span></span>
<span id= "SL644">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;now&nbsp;and&nbsp;don't&nbsp;even&nbsp;bother&nbsp;opening&nbsp;the&nbsp;zip&nbsp;file.<BR/>
</span></span>
<span id= "SL645">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL646">
<BR/>
</span>
<span id= "SL647">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL192">tempfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL648">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL649">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL650">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL651">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL270">printmatch</a>(<a href="#SL626">filename</a>,&nbsp;<a href="#SL626">info</a>->size,&nbsp;<a href="#SL626">info</a>->wr_date,&nbsp;<a href="#SL626">info</a>->wr_time);<BR/>
</span>
<span id= "SL652">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL653">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s\n&quot;</span>,&nbsp;<a href="#SL626">filename</a>);<BR/>
</span>
<span id= "SL654">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;found++;<BR/>
</span>
<span id= "SL655">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL196">totallength</a>&nbsp;+=&nbsp;<a href="#SL626">info</a>->size;<BR/>
</span>
<span id= "SL656">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL657">
<BR/>
</span>
<span id= "SL658">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL209">searchzoos</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL659">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL660">
<BR/>
</span>
<span id= "SL661">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;open&nbsp;the&nbsp;zoo&nbsp;file&nbsp;by&nbsp;name&nbsp;and&nbsp;see&nbsp;if&nbsp;it&nbsp;was&nbsp;successful.<BR/>
</span></span>
<span id= "SL662">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL663">
<BR/>
</span>
<span id= "SL664">
&nbsp;&nbsp;&nbsp;dwcfile&nbsp;=&nbsp;fopen(<a href="#SL626">filename</a>,&nbsp;<a href="#SL243">readbinary</a>);<BR/>
</span>
<span id= "SL665">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(dwcfile&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL666">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL667">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL242">fmessageread</a>,&nbsp;<a href="#SL626">filename</a>);<BR/>
</span>
<span id= "SL668">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL669">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL670">
<BR/>
</span>
<span id= "SL671">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;find&nbsp;(and&nbsp;read)&nbsp;the&nbsp;archive&nbsp;descriptor&nbsp;structure<BR/>
</span></span>
<span id= "SL672">
<span class=comment>&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL673">
<BR/>
</span>
<span id= "SL674">
&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL633">j</a>=1;&nbsp;<a href="#SL633">j</a>&nbsp;&lt;11&nbsp;&&&nbsp;<a href="#SL632">i</a>&lt;0;&nbsp;<a href="#SL633">j</a>++)<BR/>
</span>
<span id= "SL675">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL676">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(fseek(dwcfile,&nbsp;-&nbsp;((<span class=keyword>long</span>)&nbsp;ELEMENTS(<a href="#SL628">buff</a>)*<a href="#SL633">j</a>&nbsp;-&nbsp;(<a href="#SL633">j</a>-1)*5),&nbsp;SEEK_END))<BR/>
</span>
<span id= "SL677">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL678">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fseek(dwcfile,&nbsp;0L,&nbsp;SEEK_SET);<BR/>
</span>
<span id= "SL679">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL680">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL681">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL682">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL630">l</a>&nbsp;=&nbsp;ftell(dwcfile);<BR/>
</span>
<span id= "SL683">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL684">
<BR/>
</span>
<span id= "SL685">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL631">num</a>&nbsp;=&nbsp;fread((<span class=keyword>void</span>&nbsp;*)&nbsp;<a href="#SL628">buff</a>,&nbsp;<span class=keyword>sizeof</span>(<span class=keyword>char</span>),&nbsp;ELEMENTS(<a href="#SL628">buff</a>),&nbsp;dwcfile);<BR/>
</span>
<span id= "SL686">
<BR/>
</span>
<span id= "SL687">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL632">i</a>&nbsp;=&nbsp;<a href="#SL631">num</a>-3;&nbsp;<a href="#SL632">i</a>>=0&nbsp;&&&nbsp;strncmp(<a href="#SL628">buff</a>+<a href="#SL632">i</a>,&nbsp;&quot;<span class=literal>DWC&quot;</span>,&nbsp;3);&nbsp;<a href="#SL632">i</a>--)<BR/>
</span>
<span id= "SL688">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;<BR/>
</span>
<span id= "SL689">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL690">
<BR/>
</span>
<span id= "SL691">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL632">i</a>&lt;0)<BR/>
</span>
<span id= "SL692">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL693">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;&quot;<span class=literal>NJFIND:&nbsp;Invalid&nbsp;DWC&nbsp;file&nbsp;format&nbsp;in&nbsp;file&nbsp;%s\n&quot;</span>,&nbsp;<a href="#SL626">filename</a>);<BR/>
</span>
<span id= "SL694">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose(dwcfile);<BR/>
</span>
<span id= "SL695">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL696">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL697">
<BR/>
</span>
<span id= "SL698">
&nbsp;&nbsp;&nbsp;<a href="#SL630">l</a>&nbsp;+=&nbsp;<a href="#SL632">i</a>+3;<BR/>
</span>
<span id= "SL699">
<BR/>
</span>
<span id= "SL700">
&nbsp;&nbsp;&nbsp;fseek(dwcfile,&nbsp;<a href="#SL630">l</a>&nbsp;-&nbsp;<span class=keyword>sizeof</span>(<a href="#SL635">archive_block</a>),&nbsp;SEEK_SET);<BR/>
</span>
<span id= "SL701">
&nbsp;&nbsp;&nbsp;fread((<span class=keyword>void</span>&nbsp;*)&nbsp;&amp;<a href="#SL635">archive_block</a>,&nbsp;<span class=keyword>sizeof</span>(<a href="#SL635">archive_block</a>),&nbsp;1,&nbsp;dwcfile);<BR/>
</span>
<span id= "SL702">
<BR/>
</span>
<span id= "SL703">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL635">archive_block</a>.entries&nbsp;&gt;&nbsp;5000&nbsp;||&nbsp;<a href="#SL635">archive_block</a>.entries&nbsp;&lt;&nbsp;0)<BR/>
</span>
<span id= "SL704">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL705">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;&quot;<span class=literal>NJFIND:&nbsp;Invalid&nbsp;DWC&nbsp;file&nbsp;format&nbsp;in&nbsp;file&nbsp;%s\n&quot;</span>,&nbsp;<a href="#SL626">filename</a>);<BR/>
</span>
<span id= "SL706">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose(dwcfile);<BR/>
</span>
<span id= "SL707">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL708">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL709">
<BR/>
</span>
<span id= "SL710">
&nbsp;&nbsp;&nbsp;<a href="#SL630">l</a>&nbsp;-=&nbsp;((<span class=keyword>long</span>)&nbsp;<a href="#SL635">archive_block</a>.entries&nbsp;*&nbsp;<a href="#SL635">archive_block</a>.ent_sz&nbsp;+<BR/>
</span>
<span id= "SL711">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL635">archive_block</a>.size);<BR/>
</span>
<span id= "SL712">
<BR/>
</span>
<span id= "SL713">
&nbsp;&nbsp;&nbsp;fseek(dwcfile,&nbsp;<a href="#SL630">l</a>,&nbsp;SEEK_SET);<BR/>
</span>
<span id= "SL714">
<BR/>
</span>
<span id= "SL715">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;get&nbsp;each&nbsp;one&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL716">
<BR/>
</span>
<span id= "SL717">
&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL629">entrycount</a>&nbsp;=&nbsp;0;&nbsp;<a href="#SL629">entrycount</a>&nbsp;&lt;&nbsp;<a href="#SL635">archive_block</a>.entries;&nbsp;<a href="#SL629">entrycount</a>++)<BR/>
</span>
<span id= "SL718">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL719">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fread((<span class=keyword>void</span>&nbsp;*)&nbsp;&amp;<a href="#SL636">dwc_entry</a>,&nbsp;<span class=keyword>sizeof</span>(<a href="#SL636">dwc_entry</a>),&nbsp;1,&nbsp;dwcfile);<BR/>
</span>
<span id= "SL720">
<BR/>
</span>
<span id= "SL721">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<span class=keyword>sizeof</span>(<a href="#SL636">dwc_entry</a>)&nbsp;&lt;&nbsp;<a href="#SL635">archive_block</a>.ent_sz)<BR/>
</span>
<span id= "SL722">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fseek(dwcfile,&nbsp;(<span class=keyword>long</span>)&nbsp;(<a href="#SL635">archive_block</a>.ent_sz&nbsp;-&nbsp;<span class=keyword>sizeof</span>(<a href="#SL636">dwc_entry</a>)),&nbsp;SEEK_CUR);<BR/>
</span>
<span id= "SL723">
<BR/>
</span>
<span id= "SL724">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL275">makefullname</a>(&amp;<a href="#SL637">dwcfullname</a>,&nbsp;<a href="#SL636">dwc_entry</a>.name);<BR/>
</span>
<span id= "SL725">
<BR/>
</span>
<span id= "SL726">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL637">dwcfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL727">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL728">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archivefound++;<BR/>
</span>
<span id= "SL729">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL199">archivetotallength</a>&nbsp;+=&nbsp;<a href="#SL636">dwc_entry</a>.new_size;<BR/>
</span>
<span id= "SL730">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL731">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL732">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL733">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL269">printinsidedwc</a>(<a href="#SL626">filename</a>,&nbsp;<a href="#SL636">dwc_entry</a>.name,&nbsp;<a href="#SL636">dwc_entry</a>.new_size,<BR/>
</span>
<span id= "SL734">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL636">dwc_entry</a>.time);<BR/>
</span>
<span id= "SL735">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL736">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL737">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL738">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL247">swfis</a>,&nbsp;<a href="#SL636">dwc_entry</a>.name,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL626">filename</a>);<BR/>
</span>
<span id= "SL739">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL740">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL741">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL742">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL743">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL744">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s\t\t\r&quot;</span>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL636">dwc_entry</a>.name);<BR/>
</span>
<span id= "SL745">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL746">
<BR/>
</span>
<span id= "SL747">
<BR/>
</span>
<span id= "SL748">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL749">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL245">eraseline</a>);<BR/>
</span>
<span id= "SL750">
<BR/>
</span>
<span id= "SL751">
&nbsp;&nbsp;&nbsp;fclose(dwcfile);<BR/>
</span>
<span id= "SL752">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL753">
}<BR/>
</span>
<span id= "SL754">
<BR/>
</span>
<span id= "SL755">
<BR/>
</span>
<span id= "SL756">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL757">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL758">
<BR/>
</span>
<span id= "SL759">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL266">processarj</a>(<span class=keyword>char</span>&nbsp;*pstrFileName,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL759">find_t</a>&nbsp;*info)<BR/>
</span>
<span id= "SL760">
{<BR/>
</span>
<span id= "SL761">
&nbsp;&nbsp;&nbsp;FILE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*fARJFile;<BR/>
</span>
<span id= "SL762">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*pstrTemporary;<BR/>
</span>
<span id= "SL763">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;&nbsp;zipfullname;<BR/>
</span>
<span id= "SL764">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wExtHeaderSize;<BR/>
</span>
<span id= "SL765">
&nbsp;&nbsp;&nbsp;<a href="#SL42">boolean</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bSkippedHeader;<BR/>
</span>
<span id= "SL766">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL158">arj_lfh</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sBlock;<BR/>
</span>
<span id= "SL767">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nNameLength;<BR/>
</span>
<span id= "SL768">
<BR/>
</span>
<span id= "SL769">
&nbsp;&nbsp;&nbsp;fARJFile&nbsp;=&nbsp;fopen(<a href="#SL759">pstrFileName</a>,&nbsp;&quot;<span class=literal>rb&quot;</span>);<BR/>
</span>
<span id= "SL770">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(fARJFile&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL771">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL772">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;&quot;<span class=literal>NJFIND:&nbsp;Invalid&nbsp;ARJ&nbsp;file&nbsp;format&nbsp;in&nbsp;%s\n&quot;</span>,&nbsp;<a href="#SL759">pstrFileName</a>);<BR/>
</span>
<span id= "SL773">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose(fARJFile);<BR/>
</span>
<span id= "SL774">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL775">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL776">
<BR/>
</span>
<span id= "SL777">
&nbsp;&nbsp;&nbsp;<a href="#SL765">bSkippedHeader</a>&nbsp;=&nbsp;FALSE;<BR/>
</span>
<span id= "SL778">
<BR/>
</span>
<span id= "SL779">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(!feof(fARJFile))<BR/>
</span>
<span id= "SL780">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL781">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fread(&amp;<a href="#SL766">sBlock</a>,&nbsp;<span class=keyword>sizeof</span>(<span class=keyword>struct</span>&nbsp;<a href="#SL158">arj_lfh</a>),&nbsp;1,&nbsp;fARJFile);<BR/>
</span>
<span id= "SL782">
<BR/>
</span>
<span id= "SL783">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL766">sBlock</a>.wBasicHeaderSize&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL784">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>continue</span>;<BR/>
</span>
<span id= "SL785">
<BR/>
</span>
<span id= "SL786">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL767">nNameLength</a>&nbsp;=&nbsp;<a href="#SL766">sBlock</a>.wBasicHeaderSize-<span class=keyword>sizeof</span>(<span class=keyword>struct</span>&nbsp;<a href="#SL158">arj_lfh</a>)+4;<BR/>
</span>
<span id= "SL787">
<BR/>
</span>
<span id= "SL788">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fread(<a href="#SL235">szFileNameBuffer</a>,&nbsp;1,&nbsp;<a href="#SL767">nNameLength</a>,&nbsp;fARJFile);<BR/>
</span>
<span id= "SL789">
<BR/>
</span>
<span id= "SL790">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fseek(fARJFile,&nbsp;4L,&nbsp;SEEK_CUR);<BR/>
</span>
<span id= "SL791">
<BR/>
</span>
<span id= "SL792">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;((<a href="#SL764">wExtHeaderSize</a>&nbsp;=&nbsp;(<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>)&nbsp;getw(fARJFile))&nbsp;!=&nbsp;0)<BR/>
</span>
<span id= "SL793">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL794">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fseek(fARJFile,&nbsp;<a href="#SL764">wExtHeaderSize</a>+2,&nbsp;SEEK_CUR);<BR/>
</span>
<span id= "SL795">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL796">
<BR/>
</span>
<span id= "SL797">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fseek(fARJFile,&nbsp;<a href="#SL766">sBlock</a>.dwCompressedSize,&nbsp;SEEK_CUR);<BR/>
</span>
<span id= "SL798">
<BR/>
</span>
<span id= "SL799">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL765">bSkippedHeader</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL800">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL801">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL765">bSkippedHeader</a>&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL802">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL803">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL804">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL805">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL762">pstrTemporary</a>&nbsp;=&nbsp;strchr(<a href="#SL235">szFileNameBuffer</a>,&nbsp;'<span class=literal>/'</span>);<BR/>
</span>
<span id= "SL806">
<BR/>
</span>
<span id= "SL807">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL762">pstrTemporary</a>&nbsp;!=&nbsp;NULL)<BR/>
</span>
<span id= "SL808">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL809">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL762">pstrTemporary</a>++;<BR/>
</span>
<span id= "SL810">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL811">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL812">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL813">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL762">pstrTemporary</a>&nbsp;=&nbsp;<a href="#SL235">szFileNameBuffer</a>;<BR/>
</span>
<span id= "SL814">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL815">
<BR/>
</span>
<span id= "SL816">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL275">makefullname</a>(&amp;<a href="#SL763">zipfullname</a>,&nbsp;<a href="#SL762">pstrTemporary</a>);<BR/>
</span>
<span id= "SL817">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL763">zipfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL818">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL819">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;archivefound++;<BR/>
</span>
<span id= "SL820">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL199">archivetotallength</a>&nbsp;+=&nbsp;<a href="#SL766">sBlock</a>.dwOriginalSize;<BR/>
</span>
<span id= "SL821">
<BR/>
</span>
<span id= "SL822">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL823">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL824">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL825">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL826">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL268">printinside</a>(<a href="#SL759">pstrFileName</a>,&nbsp;<a href="#SL762">pstrTemporary</a>,&nbsp;<a href="#SL766">sBlock</a>.dwOriginalSize,<BR/>
</span>
<span id= "SL827">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<a href="#SL40">word</a>)&nbsp;(<a href="#SL766">sBlock</a>.dwDateTimeStamp&nbsp;>>&nbsp;16),<BR/>
</span>
<span id= "SL828">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(<a href="#SL40">word</a>)&nbsp;(<a href="#SL766">sBlock</a>.dwDateTimeStamp&nbsp;&amp;&nbsp;0x0000FFFFL));<BR/>
</span>
<span id= "SL829">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL830">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL831">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL832">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL247">swfis</a>,&nbsp;<a href="#SL235">szFileNameBuffer</a>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL759">pstrFileName</a>);<BR/>
</span>
<span id= "SL833">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL834">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL835">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL836">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL837">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL838">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL839">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL840">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL841">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s\t\t\r&quot;</span>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL235">szFileNameBuffer</a>);<BR/>
</span>
<span id= "SL842">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL843">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL844">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL845">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL846">
<BR/>
</span>
<span id= "SL847">
&nbsp;&nbsp;&nbsp;fclose(fARJFile);<BR/>
</span>
<span id= "SL848">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL849">
}<BR/>
</span>
<span id= "SL850">
<BR/>
</span>
<span id= "SL851">
<BR/>
</span>
<span id= "SL852">
<BR/>
</span>
<span id= "SL853">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL854">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL855">
<BR/>
</span>
<span id= "SL856">
<span class=keyword>void</span>&nbsp;&nbsp;processnormal(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL856">find_t</a>&nbsp;*info)<BR/>
</span>
<span id= "SL857">
{<BR/>
</span>
<span id= "SL858">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL859">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>processnormal(\"%s\")&nbsp;&nbsp;&nbsp;&quot;</span>,&nbsp;<a href="#SL856">info</a>->name);<BR/>
</span>
<span id= "SL860">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>comparenames&nbsp;=&nbsp;%d\n&quot;</span>,&nbsp;<a href="#SL273">comparenames</a>(&amp;<a href="#SL192">tempfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>));<BR/>
</span>
<span id= "SL861">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL862">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL863">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL273">comparenames</a>(&amp;<a href="#SL192">tempfullname</a>,&nbsp;&amp;<a href="#SL193">matchname</a>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL864">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL865">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;found++;<BR/>
</span>
<span id= "SL866">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL867">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL868">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL270">printmatch</a>(<a href="#SL856">filename</a>,&nbsp;<a href="#SL856">info</a>->size,&nbsp;<a href="#SL856">info</a>->wr_date,&nbsp;<a href="#SL856">info</a>->wr_time);<BR/>
</span>
<span id= "SL869">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL870">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s\n&quot;</span>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL856">filename</a>);<BR/>
</span>
<span id= "SL871">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL196">totallength</a>&nbsp;+=&nbsp;<a href="#SL856">info</a>->size;<BR/>
</span>
<span id= "SL872">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL873">
&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL874">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL875">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s\t\t\r&quot;</span>,&nbsp;<a href="#SL856">info</a>->name);<BR/>
</span>
<span id= "SL876">
<BR/>
</span>
<span id= "SL877">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL878">
}<BR/>
</span>
<span id= "SL879">
<BR/>
</span>
<span id= "SL880">
<BR/>
</span>
<span id= "SL881">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL882">
<span class=comment>&nbsp;&nbsp;&nbsp;printinside()&nbsp;prints&nbsp;out&nbsp;the&nbsp;file&nbsp;information&nbsp;from&nbsp;within&nbsp;an&nbsp;archive.<BR/>
</span></span>
<span id= "SL883">
<span class=comment>&nbsp;&nbsp;&nbsp;This&nbsp;makes&nbsp;it&nbsp;different&nbsp;than&nbsp;printmatch&nbsp;only&nbsp;in&nbsp;that&nbsp;the&nbsp;file&nbsp;name<BR/>
</span></span>
<span id= "SL884">
<span class=comment>&nbsp;&nbsp;&nbsp;*and*&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;archive&nbsp;the&nbsp;file&nbsp;was&nbsp;in&nbsp;are&nbsp;printed.<BR/>
</span></span>
<span id= "SL885">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL886">
<BR/>
</span>
<span id= "SL887">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL268">printinside</a>(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>char</span>&nbsp;*archive,<BR/>
</span>
<span id= "SL888">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;filesize,&nbsp;<a href="#SL40">word</a>&nbsp;date,&nbsp;<a href="#SL40">word</a>&nbsp;time)<BR/>
</span>
<span id= "SL889">
{<BR/>
</span>
<span id= "SL890">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;count;<BR/>
</span>
<span id= "SL891">
<BR/>
</span>
<span id= "SL892">
&nbsp;&nbsp;&nbsp;<a href="#SL890">count</a>&nbsp;=&nbsp;strlen(<a href="#SL887">filename</a>)&nbsp;+&nbsp;14&nbsp;+&nbsp;strlen(<a href="#SL887">archive</a>)&nbsp;+&nbsp;strlen(<a href="#SL230">newdriveletter</a>);<BR/>
</span>
<span id= "SL893">
&nbsp;&nbsp;&nbsp;printf(<a href="#SL247">swfis</a>,&nbsp;<a href="#SL887">archive</a>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL887">filename</a>);<BR/>
</span>
<span id= "SL894">
<BR/>
</span>
<span id= "SL895">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL890">count</a>&nbsp;&gt;&nbsp;48)<BR/>
</span>
<span id= "SL896">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL897">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL898">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s&quot;</span>,&nbsp;<a href="#SL224">fiftyspaces</a>);<BR/>
</span>
<span id= "SL899">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL900">
&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL901">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(<a href="#SL890">count</a>&nbsp;&lt;&nbsp;48)<BR/>
</span>
<span id= "SL902">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL903">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>&nbsp;'</span>);<BR/>
</span>
<span id= "SL904">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL890">count</a>++;<BR/>
</span>
<span id= "SL905">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL906">
<BR/>
</span>
<span id= "SL907">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%8lu&nbsp;&quot;</span>,&nbsp;<a href="#SL888">filesize</a>);<BR/>
</span>
<span id= "SL908">
&nbsp;&nbsp;&nbsp;<a href="#SL271">printdate</a>(<a href="#SL888">date</a>);<BR/>
</span>
<span id= "SL909">
&nbsp;&nbsp;&nbsp;<a href="#SL272">printtime</a>(<a href="#SL888">time</a>);<BR/>
</span>
<span id= "SL910">
&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL911">
<BR/>
</span>
<span id= "SL912">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL913">
}<BR/>
</span>
<span id= "SL914">
<BR/>
</span>
<span id= "SL915">
<BR/>
</span>
<span id= "SL916">
<BR/>
</span>
<span id= "SL917">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL918">
<span class=comment>&nbsp;&nbsp;&nbsp;printinsidedwc()&nbsp;prints&nbsp;out&nbsp;the&nbsp;file&nbsp;information&nbsp;from&nbsp;within&nbsp;a&nbsp;DWC<BR/>
</span></span>
<span id= "SL919">
<span class=comment>&nbsp;&nbsp;&nbsp;archive.&nbsp;&nbsp;DWC&nbsp;archives&nbsp;are&nbsp;a&nbsp;little&nbsp;different&nbsp;because&nbsp;they&nbsp;store<BR/>
</span></span>
<span id= "SL920">
<span class=comment>&nbsp;&nbsp;&nbsp;the&nbsp;date&nbsp;and&nbsp;time&nbsp;stamp&nbsp;for&nbsp;each&nbsp;file&nbsp;in&nbsp;the&nbsp;Unix-like&nbsp;&quot;localtime()&quot;<BR/>
</span></span>
<span id= "SL921">
<span class=comment>&nbsp;&nbsp;&nbsp;format.<BR/>
</span></span>
<span id= "SL922">
<span class=comment><BR/>
</span></span>
<span id= "SL923">
<span class=comment>&nbsp;&nbsp;&nbsp;For&nbsp;this&nbsp;function,&nbsp;then,&nbsp;we've&nbsp;repleaced&nbsp;the&nbsp;printdate()&nbsp;and<BR/>
</span></span>
<span id= "SL924">
<span class=comment>&nbsp;&nbsp;&nbsp;printtime()&nbsp;calls&nbsp;with&nbsp;slightly&nbsp;different&nbsp;code.<BR/>
</span></span>
<span id= "SL925">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL926">
<BR/>
</span>
<span id= "SL927">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL269">printinsidedwc</a>(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>char</span>&nbsp;*archive,<BR/>
</span>
<span id= "SL928">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL41">dword</a>&nbsp;filesize,&nbsp;time_t&nbsp;date)<BR/>
</span>
<span id= "SL929">
{<BR/>
</span>
<span id= "SL930">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;count;<BR/>
</span>
<span id= "SL931">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL931">tm</a>&nbsp;*filetime;<BR/>
</span>
<span id= "SL932">
<BR/>
</span>
<span id= "SL933">
&nbsp;&nbsp;&nbsp;<a href="#SL931">filetime</a>&nbsp;=&nbsp;localtime(&amp;date);<BR/>
</span>
<span id= "SL934">
<BR/>
</span>
<span id= "SL935">
&nbsp;&nbsp;&nbsp;<a href="#SL930">count</a>&nbsp;=&nbsp;strlen(<a href="#SL927">filename</a>)&nbsp;+&nbsp;14&nbsp;+&nbsp;strlen(<a href="#SL927">archive</a>)&nbsp;+&nbsp;strlen(<a href="#SL230">newdriveletter</a>);<BR/>
</span>
<span id= "SL936">
&nbsp;&nbsp;&nbsp;printf(<a href="#SL247">swfis</a>,&nbsp;<a href="#SL927">archive</a>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL927">filename</a>);<BR/>
</span>
<span id= "SL937">
<BR/>
</span>
<span id= "SL938">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL930">count</a>&nbsp;&gt;&nbsp;48)<BR/>
</span>
<span id= "SL939">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL940">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL941">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s&quot;</span>,&nbsp;<a href="#SL224">fiftyspaces</a>);<BR/>
</span>
<span id= "SL942">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL943">
&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL944">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(<a href="#SL930">count</a>&nbsp;&lt;&nbsp;48)<BR/>
</span>
<span id= "SL945">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL946">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>&nbsp;'</span>);<BR/>
</span>
<span id= "SL947">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL930">count</a>++;<BR/>
</span>
<span id= "SL948">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL949">
<BR/>
</span>
<span id= "SL950">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%8lu&nbsp;&quot;</span>,&nbsp;<a href="#SL928">filesize</a>);<BR/>
</span>
<span id= "SL951">
<BR/>
</span>
<span id= "SL952">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%02d-%s-%d&nbsp;&nbsp;&quot;</span>,&nbsp;<a href="#SL931">filetime</a>->tm_mday,&nbsp;<a href="#SL249">month3names</a>[<a href="#SL931">filetime</a>->tm_mon],<BR/>
</span>
<span id= "SL953">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL931">filetime</a>->tm_year);<BR/>
</span>
<span id= "SL954">
<BR/>
</span>
<span id= "SL955">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%2.2d:%2.2d:%2.2d\n&quot;</span>,&nbsp;<a href="#SL931">filetime</a>->tm_hour,&nbsp;<a href="#SL931">filetime</a>->tm_min,<BR/>
</span>
<span id= "SL956">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL931">filetime</a>->tm_sec);<BR/>
</span>
<span id= "SL957">
<BR/>
</span>
<span id= "SL958">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL959">
}<BR/>
</span>
<span id= "SL960">
<BR/>
</span>
<span id= "SL961">
<BR/>
</span>
<span id= "SL962">
<BR/>
</span>
<span id= "SL963">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL964">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL965">
<BR/>
</span>
<span id= "SL966">
<span class=keyword>void</span>&nbsp;&nbsp;printinsidearj(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<span class=keyword>char</span>&nbsp;*archive,&nbsp;<a href="#SL41">dword</a>&nbsp;filesize,&nbsp;<a href="#SL41">dword</a>&nbsp;date,&nbsp;<a href="#SL41">dword</a>&nbsp;time)<BR/>
</span>
<span id= "SL967">
{<BR/>
</span>
<span id= "SL968">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;count;<BR/>
</span>
<span id= "SL969">
<BR/>
</span>
<span id= "SL970">
&nbsp;&nbsp;&nbsp;<a href="#SL968">count</a>&nbsp;=&nbsp;strlen(<a href="#SL966">filename</a>)&nbsp;+&nbsp;14&nbsp;+&nbsp;strlen(<a href="#SL966">archive</a>)&nbsp;+&nbsp;strlen(<a href="#SL230">newdriveletter</a>);<BR/>
</span>
<span id= "SL971">
&nbsp;&nbsp;&nbsp;printf(<a href="#SL247">swfis</a>,&nbsp;<a href="#SL966">archive</a>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL966">filename</a>);<BR/>
</span>
<span id= "SL972">
<BR/>
</span>
<span id= "SL973">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL968">count</a>&nbsp;&gt;&nbsp;48)<BR/>
</span>
<span id= "SL974">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL975">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL976">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s&quot;</span>,&nbsp;<a href="#SL224">fiftyspaces</a>);<BR/>
</span>
<span id= "SL977">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL978">
&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL979">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL980">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(<a href="#SL968">count</a>&nbsp;&lt;&nbsp;48)<BR/>
</span>
<span id= "SL981">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL982">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>&nbsp;'</span>);<BR/>
</span>
<span id= "SL983">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL968">count</a>++;<BR/>
</span>
<span id= "SL984">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL985">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL986">
<BR/>
</span>
<span id= "SL987">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%8lu&nbsp;&quot;</span>,&nbsp;<a href="#SL966">filesize</a>);<BR/>
</span>
<span id= "SL988">
&nbsp;&nbsp;&nbsp;<a href="#SL271">printdate</a>((<a href="#SL40">word</a>)&nbsp;(<a href="#SL966">date</a>&nbsp;>>&nbsp;16));<BR/>
</span>
<span id= "SL989">
&nbsp;&nbsp;&nbsp;<a href="#SL272">printtime</a>((<a href="#SL40">word</a>)&nbsp;(<a href="#SL966">time</a>&nbsp;&amp;&nbsp;0x0000FFFFL));<BR/>
</span>
<span id= "SL990">
&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL991">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL992">
}<BR/>
</span>
<span id= "SL993">
<BR/>
</span>
<span id= "SL994">
<BR/>
</span>
<span id= "SL995">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL996">
<span class=comment>&nbsp;&nbsp;&nbsp;printmatch()&nbsp;prints&nbsp;out&nbsp;the&nbsp;file's&nbsp;information.&nbsp;&nbsp;It&nbsp;does&nbsp;this&nbsp;all&nbsp;in&nbsp;a<BR/>
</span></span>
<span id= "SL997">
<span class=comment>&nbsp;&nbsp;&nbsp;neat,&nbsp;tidy&nbsp;way.&nbsp;&nbsp;The&nbsp;width&nbsp;of&nbsp;50&nbsp;characters&nbsp;for&nbsp;the&nbsp;file&nbsp;name&nbsp;is&nbsp;imposed<BR/>
</span></span>
<span id= "SL998">
<span class=comment>&nbsp;&nbsp;&nbsp;because&nbsp;for&nbsp;eleven&nbsp;characters&nbsp;of&nbsp;a&nbsp;date,&nbsp;eight&nbsp;characters&nbsp;for&nbsp;a&nbsp;time,<BR/>
</span></span>
<span id= "SL999">
<span class=comment>&nbsp;&nbsp;&nbsp;one&nbsp;character&nbsp;for&nbsp;a&nbsp;space,&nbsp;and&nbsp;nine&nbsp;characters&nbsp;for&nbsp;a&nbsp;file&nbsp;size.<BR/>
</span></span>
<span id= "SL1000">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1001">
<BR/>
</span>
<span id= "SL1002">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL270">printmatch</a>(<span class=keyword>char</span>&nbsp;*filename,&nbsp;<a href="#SL41">dword</a>&nbsp;filesize,&nbsp;<a href="#SL40">word</a>&nbsp;date,&nbsp;<a href="#SL40">word</a>&nbsp;time)<BR/>
</span>
<span id= "SL1003">
{<BR/>
</span>
<span id= "SL1004">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;count;<BR/>
</span>
<span id= "SL1005">
<BR/>
</span>
<span id= "SL1006">
&nbsp;&nbsp;&nbsp;<a href="#SL1004">count</a>&nbsp;=&nbsp;strlen(<a href="#SL1002">filename</a>)+strlen(<a href="#SL230">newdriveletter</a>);<BR/>
</span>
<span id= "SL1007">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s%s&quot;</span>,&nbsp;<a href="#SL230">newdriveletter</a>,&nbsp;<a href="#SL1002">filename</a>);<BR/>
</span>
<span id= "SL1008">
<BR/>
</span>
<span id= "SL1009">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1004">count</a>&nbsp;&gt;&nbsp;48)<BR/>
</span>
<span id= "SL1010">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1011">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL1012">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s&quot;</span>,&nbsp;<a href="#SL224">fiftyspaces</a>);<BR/>
</span>
<span id= "SL1013">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1014">
&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1015">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(<a href="#SL1004">count</a>&nbsp;&lt;&nbsp;48)<BR/>
</span>
<span id= "SL1016">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1017">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>&nbsp;'</span>);<BR/>
</span>
<span id= "SL1018">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1004">count</a>++;<BR/>
</span>
<span id= "SL1019">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1020">
<BR/>
</span>
<span id= "SL1021">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%8lu&nbsp;&quot;</span>,&nbsp;<a href="#SL1002">filesize</a>);<BR/>
</span>
<span id= "SL1022">
&nbsp;&nbsp;&nbsp;<a href="#SL271">printdate</a>(<a href="#SL1002">date</a>);<BR/>
</span>
<span id= "SL1023">
&nbsp;&nbsp;&nbsp;<a href="#SL272">printtime</a>(<a href="#SL1002">time</a>);<BR/>
</span>
<span id= "SL1024">
&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL1025">
<BR/>
</span>
<span id= "SL1026">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1027">
}<BR/>
</span>
<span id= "SL1028">
<BR/>
</span>
<span id= "SL1029">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1030">
<span class=comment>&nbsp;&nbsp;&nbsp;printdate()&nbsp;accepts&nbsp;a&nbsp;word&nbsp;of&nbsp;the&nbsp;DOS&nbsp;date&nbsp;and&nbsp;prints&nbsp;it&nbsp;out&nbsp;in<BR/>
</span></span>
<span id= "SL1031">
<span class=comment>&nbsp;&nbsp;&nbsp;the&nbsp;format&nbsp;&quot;DD-MMM-CC&quot;.&nbsp;&nbsp;MMM&nbsp;is&nbsp;a&nbsp;three-letter&nbsp;name&nbsp;for&nbsp;the&nbsp;month.<BR/>
</span></span>
<span id= "SL1032">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1033">
<BR/>
</span>
<span id= "SL1034">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL271">printdate</a>(<a href="#SL40">word</a>&nbsp;date)<BR/>
</span>
<span id= "SL1035">
{<BR/>
</span>
<span id= "SL1036">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%02d-%s-%d&nbsp;&nbsp;&quot;</span>,&nbsp;<a href="#SL1034">date</a>&nbsp;&amp;&nbsp;0x001F,<BR/>
</span>
<span id= "SL1037">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL249">month3names</a>[((<a href="#SL1034">date</a>&nbsp;>>&nbsp;5)&nbsp;&amp;&nbsp;0x000F)&nbsp;-1],&nbsp;1980+(<a href="#SL1034">date</a>&nbsp;>>&nbsp;9));<BR/>
</span>
<span id= "SL1038">
<BR/>
</span>
<span id= "SL1039">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1040">
}<BR/>
</span>
<span id= "SL1041">
<BR/>
</span>
<span id= "SL1042">
<BR/>
</span>
<span id= "SL1043">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1044">
<span class=comment>&nbsp;&nbsp;&nbsp;printtime()&nbsp;accepts&nbsp;the&nbsp;DOS-format&nbsp;for&nbsp;the&nbsp;time&nbsp;as&nbsp;a&nbsp;word&nbsp;and<BR/>
</span></span>
<span id= "SL1045">
<span class=comment>&nbsp;&nbsp;&nbsp;prints&nbsp;out&nbsp;the&nbsp;time&nbsp;in&nbsp;the&nbsp;format&nbsp;&quot;HH:MM:SS&quot;.&nbsp;&nbsp;Note&nbsp;that&nbsp;the<BR/>
</span></span>
<span id= "SL1046">
<span class=comment>&nbsp;&nbsp;&nbsp;time&nbsp;is&nbsp;in&nbsp;twenty-four&nbsp;hour&nbsp;format.<BR/>
</span></span>
<span id= "SL1047">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1048">
<BR/>
</span>
<span id= "SL1049">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL272">printtime</a>(<a href="#SL40">word</a>&nbsp;time)<BR/>
</span>
<span id= "SL1050">
{<BR/>
</span>
<span id= "SL1051">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%2.2d:%2.2d:%2.2d&quot;</span>,&nbsp;<BR/>
</span>
<span id= "SL1052">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1049">time</a>&nbsp;>>&nbsp;11,&nbsp;(<a href="#SL1049">time</a>&nbsp;>>&nbsp;5)&nbsp;&amp;&nbsp;0x003F,&nbsp;(<a href="#SL1049">time</a>&nbsp;&amp;&nbsp;0x001F)&nbsp;<<&nbsp;1);<BR/>
</span>
<span id= "SL1053">
<BR/>
</span>
<span id= "SL1054">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1055">
}<BR/>
</span>
<span id= "SL1056">
<BR/>
</span>
<span id= "SL1057">
<BR/>
</span>
<span id= "SL1058">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1059">
<span class=comment>&nbsp;&nbsp;&nbsp;This&nbsp;function&nbsp;compares&nbsp;two&nbsp;fill&nbsp;file&nbsp;name&nbsp;structures.&nbsp;&nbsp;It&nbsp;ignores<BR/>
</span></span>
<span id= "SL1060">
<span class=comment>&nbsp;&nbsp;&nbsp;question&nbsp;marks&nbsp;during&nbsp;the&nbsp;comparison,&nbsp;so&nbsp;it&nbsp;will&nbsp;match&nbsp;filenames&nbsp;that<BR/>
</span></span>
<span id= "SL1061">
<span class=comment>&nbsp;&nbsp;&nbsp;have&nbsp;expanded&nbsp;wildcards.&nbsp;&nbsp;This&nbsp;routine&nbsp;will&nbsp;return&nbsp;a&nbsp;zero&nbsp;if&nbsp;the&nbsp;files<BR/>
</span></span>
<span id= "SL1062">
<span class=comment>&nbsp;&nbsp;&nbsp;are&nbsp;equivalent&nbsp;(or&nbsp;match&nbsp;by&nbsp;wildcard),&nbsp;and&nbsp;will&nbsp;return&nbsp;a&nbsp;one&nbsp;if&nbsp;the<BR/>
</span></span>
<span id= "SL1063">
<span class=comment>&nbsp;&nbsp;&nbsp;files&nbsp;names&nbsp;are&nbsp;not&nbsp;comparable.<BR/>
</span></span>
<span id= "SL1064">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1065">
<BR/>
</span>
<span id= "SL1066">
<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;<a href="#SL273">comparenames</a>(<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;*left,&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;*right)<BR/>
</span>
<span id= "SL1067">
{<BR/>
</span>
<span id= "SL1068">
&nbsp;&nbsp;&nbsp;<span class=keyword>register</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;*source;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;working&nbsp;pointers&nbsp;for&nbsp;compare&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1069">
&nbsp;&nbsp;&nbsp;<span class=keyword>register</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;*dest;<BR/>
</span>
<span id= "SL1070">
<BR/>
</span>
<span id= "SL1071">
&nbsp;&nbsp;&nbsp;<a href="#SL1068">source</a>&nbsp;=&nbsp;<a href="#SL1066">left</a>->filename;<BR/>
</span>
<span id= "SL1072">
&nbsp;&nbsp;&nbsp;<a href="#SL1069">dest</a>&nbsp;&nbsp;&nbsp;=&nbsp;<a href="#SL1066">right</a>->filename;<BR/>
</span>
<span id= "SL1073">
<BR/>
</span>
<span id= "SL1074">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>(*<a href="#SL1068">source</a>&nbsp;&&&nbsp;*<a href="#SL1069">dest</a>)<BR/>
</span>
<span id= "SL1075">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1076">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1068">source</a>&nbsp;!=&nbsp;'<span class=literal>?'</span>&nbsp;&&&nbsp;*<a href="#SL1069">dest</a>&nbsp;!=&nbsp;'<span class=literal>?'</span>)<BR/>
</span>
<span id= "SL1077">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1068">source</a>&nbsp;!=&nbsp;*<a href="#SL1069">dest</a>)<BR/>
</span>
<span id= "SL1078">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>&nbsp;1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;not&nbsp;equal!&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1079">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1068">source</a>++;<BR/>
</span>
<span id= "SL1080">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1069">dest</a>++;<BR/>
</span>
<span id= "SL1081">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1082">
<BR/>
</span>
<span id= "SL1083">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;code&nbsp;added&nbsp;version&nbsp;1.11&nbsp;*/</span><BR/>
</span>
<span id= "SL1084">
<BR/>
</span>
<span id= "SL1085">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1068">source</a>&nbsp;==&nbsp;'<span class=literal>\0'</span>&nbsp;&&&nbsp;*<a href="#SL1069">dest</a>&nbsp;!=&nbsp;'<span class=literal>\0'</span>)<BR/>
</span>
<span id= "SL1086">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>&nbsp;1;<BR/>
</span>
<span id= "SL1087">
<BR/>
</span>
<span id= "SL1088">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;end&nbsp;code&nbsp;added&nbsp;version&nbsp;1.11&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1089">
<BR/>
</span>
<span id= "SL1090">
&nbsp;&nbsp;&nbsp;<a href="#SL1068">source</a>&nbsp;=&nbsp;<a href="#SL1066">left</a>->fileextension;<BR/>
</span>
<span id= "SL1091">
&nbsp;&nbsp;&nbsp;<a href="#SL1069">dest</a>&nbsp;&nbsp;&nbsp;=&nbsp;<a href="#SL1066">right</a>->fileextension;<BR/>
</span>
<span id= "SL1092">
<BR/>
</span>
<span id= "SL1093">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>(*<a href="#SL1068">source</a>&nbsp;&&&nbsp;*<a href="#SL1069">dest</a>)<BR/>
</span>
<span id= "SL1094">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1095">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1068">source</a>&nbsp;!=&nbsp;'<span class=literal>?'</span>&nbsp;&&&nbsp;*<a href="#SL1069">dest</a>&nbsp;!=&nbsp;'<span class=literal>?'</span>)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;skip&nbsp;questionmarks&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1096">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1068">source</a>&nbsp;!=&nbsp;*<a href="#SL1069">dest</a>)<BR/>
</span>
<span id= "SL1097">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>&nbsp;1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;not&nbsp;equal!&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1098">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1068">source</a>++;<BR/>
</span>
<span id= "SL1099">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1069">dest</a>++;<BR/>
</span>
<span id= "SL1100">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1101">
<BR/>
</span>
<span id= "SL1102">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;code&nbsp;added&nbsp;version&nbsp;1.11&nbsp;*/</span><BR/>
</span>
<span id= "SL1103">
<BR/>
</span>
<span id= "SL1104">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1068">source</a>&nbsp;==&nbsp;'<span class=literal>\0'</span>&nbsp;&&&nbsp;*<a href="#SL1069">dest</a>&nbsp;!=&nbsp;'<span class=literal>\0'</span>)<BR/>
</span>
<span id= "SL1105">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>&nbsp;1;<BR/>
</span>
<span id= "SL1106">
<BR/>
</span>
<span id= "SL1107">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;end&nbsp;code&nbsp;added&nbsp;version&nbsp;1.11&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1108">
<BR/>
</span>
<span id= "SL1109">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>&nbsp;0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;zero&nbsp;indicates&nbsp;success&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1110">
}<BR/>
</span>
<span id= "SL1111">
<BR/>
</span>
<span id= "SL1112">
<BR/>
</span>
<span id= "SL1113">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1114">
<span class=comment>&nbsp;&nbsp;&nbsp;maketemplate()&nbsp;takes&nbsp;inputfile[]&nbsp;and&nbsp;expands&nbsp;all&nbsp;the&nbsp;asterisks&nbsp;to<BR/>
</span></span>
<span id= "SL1115">
<span class=comment>&nbsp;&nbsp;&nbsp;question&nbsp;marks.&nbsp;&nbsp;This&nbsp;is&nbsp;done&nbsp;once,&nbsp;first,&nbsp;so&nbsp;that&nbsp;the&nbsp;checkmatch()<BR/>
</span></span>
<span id= "SL1116">
<span class=comment>&nbsp;&nbsp;&nbsp;routine&nbsp;can&nbsp;more&nbsp;quickly&nbsp;and&nbsp;efficiently&nbsp;check&nbsp;for&nbsp;matches&nbsp;in&nbsp;file<BR/>
</span></span>
<span id= "SL1117">
<span class=comment>&nbsp;&nbsp;&nbsp;names.<BR/>
</span></span>
<span id= "SL1118">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1119">
<BR/>
</span>
<span id= "SL1120">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL274">maketemplate</a>()<BR/>
</span>
<span id= "SL1121">
{<BR/>
</span>
<span id= "SL1122">
&nbsp;&nbsp;&nbsp;<span class=keyword>register</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;*source&nbsp;=&nbsp;<a href="#SL189">inputfile</a>;&nbsp;/*<span class=comment>&nbsp;pointers&nbsp;for&nbsp;copying&nbsp;data&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1123">
&nbsp;&nbsp;&nbsp;<span class=keyword>register</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;*dest&nbsp;=&nbsp;<span class=keyword>template</span>;<BR/>
</span>
<span id= "SL1124">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;count&nbsp;=&nbsp;0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;count&nbsp;of&nbsp;template&nbsp;length&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1125">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;inextension&nbsp;=&nbsp;0;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;set&nbsp;after&nbsp;we&nbsp;get&nbsp;a&nbsp;.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1126">
<BR/>
</span>
<span id= "SL1127">
&nbsp;&nbsp;&nbsp;*<a href="#SL1123">dest</a>++&nbsp;=&nbsp;'<span class=literal>\\'</span>;<BR/>
</span>
<span id= "SL1128">
<BR/>
</span>
<span id= "SL1129">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>(*<a href="#SL1122">source</a>&nbsp;!=&nbsp;'<span class=literal>\0'</span>&nbsp;&&&nbsp;<a href="#SL1124">count</a>&nbsp;&lt;&nbsp;13&nbsp;&&&nbsp;<a href="#SL1125">inextension</a>&nbsp;&lt;&nbsp;4)<BR/>
</span>
<span id= "SL1130">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1131">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1122">source</a>&nbsp;!=&nbsp;'<span class=literal>*'</span>)<BR/>
</span>
<span id= "SL1132">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1133">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1123">dest</a>++&nbsp;=&nbsp;*<a href="#SL1122">source</a>;<BR/>
</span>
<span id= "SL1134">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1124">count</a>++;<BR/>
</span>
<span id= "SL1135">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1124">count</a>&nbsp;==&nbsp;9&nbsp;||&nbsp;*<a href="#SL1122">source</a>&nbsp;==&nbsp;'<span class=literal>.'</span>)<BR/>
</span>
<span id= "SL1136">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1125">inextension</a>++;<BR/>
</span>
<span id= "SL1137">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1122">source</a>++;<BR/>
</span>
<span id= "SL1138">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1139">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1140">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1141">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1125">inextension</a>&nbsp;!=&nbsp;0)<BR/>
</span>
<span id= "SL1142">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1143">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(&nbsp;;&nbsp;<a href="#SL1125">inextension</a>&lt;4;&nbsp;<a href="#SL1125">inextension</a>++)<BR/>
</span>
<span id= "SL1144">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1123">dest</a>++&nbsp;=&nbsp;'<span class=literal>?'</span>;<BR/>
</span>
<span id= "SL1145">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1123">dest</a>&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1146">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1147">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1148">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1149">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1150">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(&nbsp;;&nbsp;<a href="#SL1124">count</a>&lt;8;&nbsp;<a href="#SL1124">count</a>++)<BR/>
</span>
<span id= "SL1151">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1123">dest</a>++&nbsp;=&nbsp;'<span class=literal>?'</span>;<BR/>
</span>
<span id= "SL1152">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1123">dest</a>++&nbsp;=&nbsp;'<span class=literal>.'</span>;<BR/>
</span>
<span id= "SL1153">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1125">inextension</a>&nbsp;=&nbsp;1;<BR/>
</span>
<span id= "SL1154">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1122">source</a>++;<BR/>
</span>
<span id= "SL1155">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1122">source</a>&nbsp;==&nbsp;'<span class=literal>.'</span>)<BR/>
</span>
<span id= "SL1156">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1122">source</a>++;<BR/>
</span>
<span id= "SL1157">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1158">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1159">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1160">
<BR/>
</span>
<span id= "SL1161">
&nbsp;&nbsp;&nbsp;*<a href="#SL1123">dest</a>&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1162">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1163">
}<BR/>
</span>
<span id= "SL1164">
<BR/>
</span>
<span id= "SL1165">
<BR/>
</span>
<span id= "SL1166">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1167">
<span class=comment>&nbsp;&nbsp;&nbsp;makefullname()&nbsp;accepts&nbsp;a&nbsp;pointer&nbsp;to&nbsp;a&nbsp;DOS&nbsp;path&nbsp;name&nbsp;and&nbsp;a&nbsp;pointer&nbsp;to<BR/>
</span></span>
<span id= "SL1168">
<span class=comment>&nbsp;&nbsp;&nbsp;a&nbsp;fullfilename&nbsp;structure.&nbsp;&nbsp;makefullname()&nbsp;puts&nbsp;the&nbsp;file&nbsp;name&nbsp;from<BR/>
</span></span>
<span id= "SL1169">
<span class=comment>&nbsp;&nbsp;&nbsp;the&nbsp;path&nbsp;into&nbsp;the&nbsp;fullfilename&nbsp;structure&nbsp;and&nbsp;returns.<BR/>
</span></span>
<span id= "SL1170">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1171">
<BR/>
</span>
<span id= "SL1172">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL275">makefullname</a>(<span class=keyword>struct</span>&nbsp;<a href="#SL52">fullfilename</a>&nbsp;*ffn,&nbsp;<span class=keyword>char</span>&nbsp;*path)<BR/>
</span>
<span id= "SL1173">
{<BR/>
</span>
<span id= "SL1174">
&nbsp;&nbsp;&nbsp;<span class=keyword>register</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;*source;<BR/>
</span>
<span id= "SL1175">
&nbsp;&nbsp;&nbsp;<span class=keyword>register</span>&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;*dest;<BR/>
</span>
<span id= "SL1176">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;counter;<BR/>
</span>
<span id= "SL1177">
<BR/>
</span>
<span id= "SL1178">
&nbsp;&nbsp;&nbsp;<a href="#SL1174">source</a>&nbsp;=&nbsp;strrchr(<a href="#SL1172">path</a>,&nbsp;'<span class=literal>\\'</span>);<BR/>
</span>
<span id= "SL1179">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1174">source</a>&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL1180">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1174">source</a>&nbsp;=&nbsp;<a href="#SL1172">path</a>;<BR/>
</span>
<span id= "SL1181">
&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1182">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1174">source</a>++;<BR/>
</span>
<span id= "SL1183">
<BR/>
</span>
<span id= "SL1184">
&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL1175">dest</a>&nbsp;=&nbsp;<a href="#SL1172">ffn</a>->filename,&nbsp;<a href="#SL1176">counter</a>&nbsp;=&nbsp;0;&nbsp;*<a href="#SL1174">source</a>&nbsp;&&&nbsp;<a href="#SL1176">counter</a>&lt;8;&nbsp;<a href="#SL1176">counter</a>++)<BR/>
</span>
<span id= "SL1185">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1174">source</a>&nbsp;==&nbsp;'<span class=literal>.'</span>)<BR/>
</span>
<span id= "SL1186">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1175">dest</a>++&nbsp;=&nbsp;'<span class=literal>&nbsp;'</span>;<BR/>
</span>
<span id= "SL1187">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1188">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1175">dest</a>++&nbsp;=&nbsp;*<a href="#SL1174">source</a>++;<BR/>
</span>
<span id= "SL1189">
<BR/>
</span>
<span id= "SL1190">
&nbsp;&nbsp;&nbsp;*<a href="#SL1175">dest</a>&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1191">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1174">source</a>&nbsp;!=&nbsp;'<span class=literal>\0'</span>)<BR/>
</span>
<span id= "SL1192">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1174">source</a>++;<BR/>
</span>
<span id= "SL1193">
<BR/>
</span>
<span id= "SL1194">
&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL1175">dest</a>&nbsp;=&nbsp;<a href="#SL1172">ffn</a>->fileextension,&nbsp;<a href="#SL1176">counter</a>&nbsp;=&nbsp;0;&nbsp;<a href="#SL1176">counter</a>&lt;3;&nbsp;<a href="#SL1176">counter</a>++)<BR/>
</span>
<span id= "SL1195">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1174">source</a>&nbsp;==&nbsp;'<span class=literal>\0'</span>)<BR/>
</span>
<span id= "SL1196">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1175">dest</a>++&nbsp;=&nbsp;'<span class=literal>&nbsp;'</span>;<BR/>
</span>
<span id= "SL1197">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1198">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1175">dest</a>++&nbsp;=&nbsp;*<a href="#SL1174">source</a>++;<BR/>
</span>
<span id= "SL1199">
<BR/>
</span>
<span id= "SL1200">
&nbsp;&nbsp;&nbsp;*<a href="#SL1175">dest</a>&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1201">
<BR/>
</span>
<span id= "SL1202">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1203">
}<BR/>
</span>
<span id= "SL1204">
<BR/>
</span>
<span id= "SL1205">
<BR/>
</span>
<span id= "SL1206">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1207">
<span class=comment>&nbsp;&nbsp;&nbsp;searchdir()&nbsp;accepts&nbsp;the&nbsp;name&nbsp;of&nbsp;a&nbsp;directory.&nbsp;&nbsp;That&nbsp;name&nbsp;*MUST*&nbsp;include<BR/>
</span></span>
<span id= "SL1208">
<span class=comment>&nbsp;&nbsp;&nbsp;wildcards,&nbsp;and&nbsp;may&nbsp;include&nbsp;a&nbsp;partial&nbsp;filename,&nbsp;a&nbsp;full&nbsp;pathname,&nbsp;or&nbsp;a<BR/>
</span></span>
<span id= "SL1209">
<span class=comment>&nbsp;&nbsp;&nbsp;drive&nbsp;specification.<BR/>
</span></span>
<span id= "SL1210">
<span class=comment><BR/>
</span></span>
<span id= "SL1211">
<span class=comment>&nbsp;&nbsp;&nbsp;The&nbsp;function&nbsp;will&nbsp;search&nbsp;all&nbsp;directories&nbsp;and&nbsp;go&nbsp;lower,&nbsp;and&nbsp;will&nbsp;call<BR/>
</span></span>
<span id= "SL1212">
<span class=comment>&nbsp;&nbsp;&nbsp;itself&nbsp;recursively&nbsp;if&nbsp;it&nbsp;finds&nbsp;any&nbsp;more&nbsp;subdirectories.&nbsp;&nbsp;In&nbsp;this&nbsp;way,<BR/>
</span></span>
<span id= "SL1213">
<span class=comment>&nbsp;&nbsp;&nbsp;it&nbsp;traverses&nbsp;the&nbsp;subdirectory&nbsp;tree&nbsp;in&nbsp;an&nbsp;&quot;inorder&quot;&nbsp;fasion.<BR/>
</span></span>
<span id= "SL1214">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1215">
<BR/>
</span>
<span id= "SL1216">
<span class=keyword>void</span>&nbsp;<a href="#SL276">searchdir</a>(<span class=keyword>char</span>&nbsp;*dirname)<BR/>
</span>
<span id= "SL1217">
{<BR/>
</span>
<span id= "SL1218">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temppath[_MAX_PATH];<BR/>
</span>
<span id= "SL1219">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;thisfilename[_MAX_DIR+_MAX_FNAME+_MAX_EXT];<BR/>
</span>
<span id= "SL1220">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL1220">find_t</a>&nbsp;&nbsp;dirinfo;<BR/>
</span>
<span id= "SL1221">
<BR/>
</span>
<span id= "SL1222">
&nbsp;&nbsp;&nbsp;strcpy(<a href="#SL1218">temppath</a>,&nbsp;<a href="#SL1216">dirname</a>);<BR/>
</span>
<span id= "SL1223">
&nbsp;&nbsp;&nbsp;result&nbsp;=&nbsp;_dos_findfirst(<a href="#SL1218">temppath</a>,&nbsp;_A_NORMAL&nbsp;|&nbsp;_A_SUBDIR,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1224">
<BR/>
</span>
<span id= "SL1225">
&nbsp;&nbsp;&nbsp;<span class=keyword>do</span>&nbsp;{<BR/>
</span>
<span id= "SL1226">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcpy(<a href="#SL1219">thisfilename</a>,&nbsp;<a href="#SL1216">dirname</a>);<BR/>
</span>
<span id= "SL1227">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*(strrchr(<a href="#SL1219">thisfilename</a>,&nbsp;'<span class=literal>\\'</span>)+1)&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1228">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(<a href="#SL1219">thisfilename</a>,&nbsp;<a href="#SL1220">dirinfo</a>.name);<BR/>
</span>
<span id= "SL1229">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL1230">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>%s&nbsp;&quot;</span>,&nbsp;<a href="#SL1219">thisfilename</a>);<BR/>
</span>
<span id= "SL1231">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL1232">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL1233">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;((<a href="#SL1220">dirinfo</a>.attrib&nbsp;&amp;&nbsp;_A_SUBDIR)&nbsp;&&<BR/>
</span>
<span id= "SL1234">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1220">dirinfo</a>.name[0]&nbsp;!=&nbsp;'<span class=literal>.'</span>)<BR/>
</span>
<span id= "SL1235">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1236">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL1237">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>(DIRECTORY)&nbsp;%s\n&quot;</span>,&nbsp;<a href="#SL1219">thisfilename</a>);<BR/>
</span>
<span id= "SL1238">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL1239">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strcat(<a href="#SL1219">thisfilename</a>,&nbsp;&quot;<span class=literal>\\*.*&quot;</span>);<BR/>
</span>
<span id= "SL1240">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL276">searchdir</a>(<a href="#SL1219">thisfilename</a>);<BR/>
</span>
<span id= "SL1241">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1242">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1243">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1244">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL1245">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL1246">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL1247">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL1248">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>(<a href="#SL220">broken</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL1249">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1250">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL187">extension</a>&nbsp;=&nbsp;strchr(<a href="#SL1219">thisfilename</a>,&nbsp;'<span class=literal>.'</span>);<BR/>
</span>
<span id= "SL1251">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*(<a href="#SL187">extension</a>-1)&nbsp;==&nbsp;'<span class=literal>\\'</span>)<BR/>
</span>
<span id= "SL1252">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1253">
<BR/>
</span>
<span id= "SL1254">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL275">makefullname</a>(&amp;<a href="#SL192">tempfullname</a>,&nbsp;<a href="#SL1219">thisfilename</a>);<BR/>
</span>
<span id= "SL1255">
<BR/>
</span>
<span id= "SL1256">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL187">extension</a>&nbsp;!=&nbsp;NULL)<BR/>
</span>
<span id= "SL1257">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1258">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(strcmp(<a href="#SL187">extension</a>,&nbsp;&quot;<span class=literal>.LZH&quot;</span>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL1259">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1260">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL263">processlzh</a>(<a href="#SL1219">thisfilename</a>,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1261">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1262">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1263">
<BR/>
</span>
<span id= "SL1264">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;Note&nbsp;that&nbsp;we&nbsp;call&nbsp;the&nbsp;same&nbsp;routine&nbsp;for&nbsp;.PAK&nbsp;and&nbsp;.ARC.<BR/>
</span></span>
<span id= "SL1265">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;They&nbsp;have&nbsp;the&nbsp;same&nbsp;(basic)&nbsp;format!<BR/>
</span></span>
<span id= "SL1266">
<span class=comment>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1267">
<BR/>
</span>
<span id= "SL1268">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(strcmp(<a href="#SL187">extension</a>,&nbsp;&quot;<span class=literal>.PAK&quot;</span>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL1269">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1270">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL261">processpak</a>(<a href="#SL1219">thisfilename</a>,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1271">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1272">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1273">
<BR/>
</span>
<span id= "SL1274">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(strcmp(<a href="#SL187">extension</a>,&nbsp;&quot;<span class=literal>.ARC&quot;</span>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL1275">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1276">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL262">processarc</a>(<a href="#SL1219">thisfilename</a>,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1277">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1278">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1279">
<BR/>
</span>
<span id= "SL1280">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(strcmp(<a href="#SL187">extension</a>,&nbsp;&quot;<span class=literal>.ZOO&quot;</span>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL1281">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1282">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL264">processzoo</a>(<a href="#SL1219">thisfilename</a>,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1283">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1284">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1285">
<BR/>
</span>
<span id= "SL1286">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(strcmp(<a href="#SL187">extension</a>,&nbsp;&quot;<span class=literal>.ZIP&quot;</span>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL1287">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1288">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL260">processzip</a>(<a href="#SL1219">thisfilename</a>,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1289">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1290">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1291">
<BR/>
</span>
<span id= "SL1292">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;DWC&nbsp;was&nbsp;added&nbsp;in&nbsp;version&nbsp;2.00&nbsp;*/</span><BR/>
</span>
<span id= "SL1293">
<BR/>
</span>
<span id= "SL1294">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(strcmp(<a href="#SL187">extension</a>,&nbsp;&quot;<span class=literal>.DWC&quot;</span>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL1295">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1296">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL265">processdwc</a>(<a href="#SL1219">thisfilename</a>,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1297">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1298">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1299">
<BR/>
</span>
<span id= "SL1300">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;ARJ&nbsp;was&nbsp;added&nbsp;in&nbsp;version&nbsp;2.10&nbsp;*/</span><BR/>
</span>
<span id= "SL1301">
<BR/>
</span>
<span id= "SL1302">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(strcmp(<a href="#SL187">extension</a>,&nbsp;&quot;<span class=literal>.ARJ&quot;</span>)&nbsp;==&nbsp;0)<BR/>
</span>
<span id= "SL1303">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1304">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL266">processarj</a>(<a href="#SL1219">thisfilename</a>,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1305">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1306">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1307">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR/>
</span>
<span id= "SL1308">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1309">
<BR/>
</span>
<span id= "SL1310">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL856">processnormal</a>(<a href="#SL1219">thisfilename</a>,&nbsp;&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1311">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1312">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1313">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1314">
<BR/>
</span>
<span id= "SL1315">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result&nbsp;=&nbsp;_dos_findnext(&amp;<a href="#SL1220">dirinfo</a>);<BR/>
</span>
<span id= "SL1316">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;<span class=keyword>while</span>&nbsp;(result&nbsp;==&nbsp;0&nbsp;&&&nbsp;<a href="#SL220">broken</a>&nbsp;==&nbsp;FALSE);<BR/>
</span>
<span id= "SL1317">
<BR/>
</span>
<span id= "SL1318">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL216">progress</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL1319">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(<a href="#SL245">eraseline</a>);<BR/>
</span>
<span id= "SL1320">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1321">
}<BR/>
</span>
<span id= "SL1322">
<BR/>
</span>
<span id= "SL1323">
<BR/>
</span>
<span id= "SL1324">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1325">
<span class=comment>&nbsp;&nbsp;&nbsp;showusage()&nbsp;is&nbsp;a&nbsp;kind&nbsp;of&nbsp;error&nbsp;routine.&nbsp;&nbsp;It&nbsp;is&nbsp;called&nbsp;when&nbsp;we&nbsp;get&nbsp;confused<BR/>
</span></span>
<span id= "SL1326">
<span class=comment>&nbsp;&nbsp;&nbsp;parsing&nbsp;the&nbsp;command&nbsp;line&nbsp;and&nbsp;bail&nbsp;out&nbsp;gracefully.&nbsp;&nbsp;This&nbsp;prints&nbsp;the<BR/>
</span></span>
<span id= "SL1327">
<span class=comment>&nbsp;&nbsp;&nbsp;program&nbsp;usage&nbsp;and&nbsp;quits.<BR/>
</span></span>
<span id= "SL1328">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1329">
<BR/>
</span>
<span id= "SL1330">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL277">showusage</a>()<BR/>
</span>
<span id= "SL1331">
{<BR/>
</span>
<span id= "SL1332">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>Usage:&nbsp;NJFIND&nbsp;[options]&nbsp;&lt;filespec&gt;\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1333">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>[options]&nbsp;include:\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1334">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/A&nbsp;-&nbsp;do&nbsp;not&nbsp;search&nbsp;*.ARC&nbsp;files\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1335">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/J&nbsp;-&nbsp;do&nbsp;not&nbsp;search&nbsp;*.ARJ&nbsp;files\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1336">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/W&nbsp;-&nbsp;do&nbsp;not&nbsp;search&nbsp;*.DWC&nbsp;files\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1337">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/L&nbsp;-&nbsp;do&nbsp;not&nbsp;search&nbsp;*.LZH&nbsp;files\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1338">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/P&nbsp;-&nbsp;do&nbsp;not&nbsp;search&nbsp;*.PAK&nbsp;files\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1339">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/O&nbsp;-&nbsp;do&nbsp;not&nbsp;search&nbsp;*.ZOO&nbsp;files\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1340">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/Z&nbsp;-&nbsp;do&nbsp;not&nbsp;search&nbsp;*.ZIP&nbsp;files\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1341">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/N&nbsp;-&nbsp;only&nbsp;search&nbsp;normal&nbsp;files&nbsp;(combo&nbsp;of&nbsp;/W&nbsp;/J&nbsp;/O&nbsp;/Z&nbsp;/P&nbsp;/A&nbsp;/L)\n\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1342">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/V&nbsp;-&nbsp;verbose&nbsp;mode;&nbsp;prints&nbsp;statistics\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1343">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/T&nbsp;-&nbsp;totals&nbsp;mode;&nbsp;prints&nbsp;no&nbsp;found&nbsp;filenames\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1344">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/D&nbsp;-&nbsp;progress&nbsp;display&nbsp;prints&nbsp;filenames&nbsp;as&nbsp;searched\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1345">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>\t/R&nbsp;-&nbsp;run&nbsp;search&nbsp;across&nbsp;all&nbsp;DOS&nbsp;drives\n\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1346">
<BR/>
</span>
<span id= "SL1347">
&nbsp;&nbsp;&nbsp;exit(1);<BR/>
</span>
<span id= "SL1348">
}<BR/>
</span>
<span id= "SL1349">
<BR/>
</span>
<span id= "SL1350">
<BR/>
</span>
<span id= "SL1351">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1352">
<span class=comment>&nbsp;&nbsp;&nbsp;handleoption()&nbsp;takes&nbsp;care&nbsp;of&nbsp;the&nbsp;options&nbsp;the&nbsp;program&nbsp;accepts.&nbsp;&nbsp;since<BR/>
</span></span>
<span id= "SL1353">
<span class=comment>&nbsp;&nbsp;&nbsp;these&nbsp;are&nbsp;all&nbsp;just&nbsp;switches,&nbsp;we&nbsp;just&nbsp;tweak&nbsp;the&nbsp;boolean&nbsp;variables&nbsp;that<BR/>
</span></span>
<span id= "SL1354">
<span class=comment>&nbsp;&nbsp;&nbsp;represent&nbsp;each&nbsp;option.<BR/>
</span></span>
<span id= "SL1355">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1356">
<BR/>
</span>
<span id= "SL1357">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL278">handleoption</a>(<span class=keyword>char</span>&nbsp;*option,&nbsp;<a href="#SL42">boolean</a>&nbsp;inenvironment)<BR/>
</span>
<span id= "SL1358">
{<BR/>
</span>
<span id= "SL1359">
&nbsp;&nbsp;&nbsp;<span class=keyword>switch</span>(toupper(*<a href="#SL1357">option</a>))<BR/>
</span>
<span id= "SL1360">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1361">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>N'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL209">searchzoos</a>&nbsp;=<BR/>
</span>
<span id= "SL1362">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL211">searchpaks</a>&nbsp;=<BR/>
</span>
<span id= "SL1363">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL210">searcharcs</a>&nbsp;=<BR/>
</span>
<span id= "SL1364">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL208">searchlzhs</a>&nbsp;=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;normal&nbsp;files&nbsp;...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1365">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL207">searchzips</a>&nbsp;=&nbsp;FALSE;<BR/>
</span>
<span id= "SL1366">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL244">notsearching</a>,&nbsp;&quot;<span class=literal>ARC,&nbsp;ARJ,&nbsp;DWC,&nbsp;LZH,&nbsp;PAK,&nbsp;ZIP,&nbsp;or&nbsp;ZOO&quot;</span>);<BR/>
</span>
<span id= "SL1367">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1368">
<BR/>
</span>
<span id= "SL1369">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>O'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL209">searchzoos</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;turn&nbsp;off&nbsp;ZOO&nbsp;files&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1370">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL244">notsearching</a>,&nbsp;&quot;<span class=literal>ZOO&quot;</span>);<BR/>
</span>
<span id= "SL1371">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1372">
<BR/>
</span>
<span id= "SL1373">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;added&nbsp;code,&nbsp;version&nbsp;2.00&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1374">
<BR/>
</span>
<span id= "SL1375">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>W'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL212">searchdwcs</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;turn&nbsp;off&nbsp;DWC&nbsp;files&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1376">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL244">notsearching</a>,&nbsp;&quot;<span class=literal>DWC&quot;</span>);<BR/>
</span>
<span id= "SL1377">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1378">
<BR/>
</span>
<span id= "SL1379">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;end&nbsp;added&nbsp;code&nbsp;*/</span><BR/>
</span>
<span id= "SL1380">
<BR/>
</span>
<span id= "SL1381">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;added&nbsp;code,&nbsp;version&nbsp;2.10&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1382">
<BR/>
</span>
<span id= "SL1383">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>J'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL213">searcharjs</a>&nbsp;=&nbsp;FALSE;<BR/>
</span>
<span id= "SL1384">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL244">notsearching</a>,&nbsp;&quot;<span class=literal>ARJ&quot;</span>);<BR/>
</span>
<span id= "SL1385">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1386">
<BR/>
</span>
<span id= "SL1387">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;end&nbsp;added&nbsp;code&nbsp;*/</span><BR/>
</span>
<span id= "SL1388">
<BR/>
</span>
<span id= "SL1389">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>Z'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL207">searchzips</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;turn&nbsp;off&nbsp;ZIP&nbsp;files&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1390">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL244">notsearching</a>,&nbsp;&quot;<span class=literal>ZIP&quot;</span>);<BR/>
</span>
<span id= "SL1391">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1392">
<BR/>
</span>
<span id= "SL1393">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>A'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL210">searcharcs</a>&nbsp;=&nbsp;FALSE;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;turn&nbsp;off&nbsp;ARC&nbsp;files&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1394">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL244">notsearching</a>,&nbsp;&quot;<span class=literal>ARC&quot;</span>);<BR/>
</span>
<span id= "SL1395">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1396">
<BR/>
</span>
<span id= "SL1397">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>L'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL208">searchlzhs</a>&nbsp;=&nbsp;FALSE;<BR/>
</span>
<span id= "SL1398">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL244">notsearching</a>,&nbsp;&quot;<span class=literal>LZH&quot;</span>);<BR/>
</span>
<span id= "SL1399">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1400">
<BR/>
</span>
<span id= "SL1401">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>P'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL211">searchpaks</a>&nbsp;=&nbsp;FALSE;<BR/>
</span>
<span id= "SL1402">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;<a href="#SL244">notsearching</a>,&nbsp;&quot;<span class=literal>PAK&quot;</span>);<BR/>
</span>
<span id= "SL1403">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1404">
<BR/>
</span>
<span id= "SL1405">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>V'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL215">verbose</a>&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL1406">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>Verbose&nbsp;mode\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1407">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1408">
<BR/>
</span>
<span id= "SL1409">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>D'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL216">progress</a>&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL1410">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>Progress&nbsp;displays&nbsp;enabled\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1411">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1412">
<BR/>
</span>
<span id= "SL1413">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>T'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL217">totalsmode</a>&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL1414">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>Totals&nbsp;mode&nbsp;only\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1415">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1416">
<BR/>
</span>
<span id= "SL1417">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;added&nbsp;code,&nbsp;version&nbsp;1.10&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1418">
<BR/>
</span>
<span id= "SL1419">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;'<span class=literal>R'</span>:&nbsp;&nbsp;&nbsp;<a href="#SL222">alldrives</a>&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL1420">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>Search&nbsp;all&nbsp;drives\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1421">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1422">
<BR/>
</span>
<span id= "SL1423">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;end&nbsp;of&nbsp;added&nbsp;code&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1424">
<BR/>
</span>
<span id= "SL1425">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>default</span>:&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;&quot;<span class=literal>NJFIND:&nbsp;Unrecognized&nbsp;Option&nbsp;'%c'&quot;</span>,&nbsp;*<a href="#SL1357">option</a>);<BR/>
</span>
<span id= "SL1426">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR/>
</span>
<span id= "SL1427">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;added&nbsp;code,&nbsp;version&nbsp;2.00&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1428">
<BR/>
</span>
<span id= "SL1429">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1357">inenvironment</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL1430">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;&quot;<span class=literal>&nbsp;in&nbsp;NJFIND&nbsp;environment&nbsp;variable&quot;</span>);<BR/>
</span>
<span id= "SL1431">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputc('<span class=literal>\n'</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1432">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputc('<span class=literal>\n'</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1433">
<BR/>
</span>
<span id= "SL1434">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;end&nbsp;added&nbsp;code&nbsp;*/</span><BR/>
</span>
<span id= "SL1435">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL277">showusage</a>();<BR/>
</span>
<span id= "SL1436">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1437">
<BR/>
</span>
<span id= "SL1438">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1439">
}<BR/>
</span>
<span id= "SL1440">
<BR/>
</span>
<span id= "SL1441">
<BR/>
</span>
<span id= "SL1442">
<BR/>
</span>
<span id= "SL1443">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1444">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1445">
<BR/>
</span>
<span id= "SL1446">
<span class=keyword>void</span>&nbsp;vBuildDOS6List(<span class=keyword>void</span>)<BR/>
</span>
<span id= "SL1447">
{<BR/>
</span>
<span id= "SL1448">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;nMax;<BR/>
</span>
<span id= "SL1449">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;nTry;<BR/>
</span>
<span id= "SL1450">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;nOld;<BR/>
</span>
<span id= "SL1451">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;nCurrent;<BR/>
</span>
<span id= "SL1452">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*pstrDest;<BR/>
</span>
<span id= "SL1453">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;far&nbsp;*uipNewWalker;<BR/>
</span>
<span id= "SL1454">
<BR/>
</span>
<span id= "SL1455">
&nbsp;&nbsp;&nbsp;<span class=keyword>union</span>&nbsp;<a href="#SL1455">REGS</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inregs;<BR/>
</span>
<span id= "SL1456">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL1456">SREGS</a>&nbsp;&nbsp;&nbsp;segregs;<BR/>
</span>
<span id= "SL1457">
<BR/>
</span>
<span id= "SL1458">
&nbsp;&nbsp;&nbsp;<a href="#SL1452">pstrDest</a>&nbsp;=&nbsp;<a href="#SL232">drivelist</a>;<BR/>
</span>
<span id= "SL1459">
<BR/>
</span>
<span id= "SL1460">
&nbsp;&nbsp;&nbsp;_dos_getdrive(&amp;<a href="#SL1450">nOld</a>);<BR/>
</span>
<span id= "SL1461">
&nbsp;&nbsp;&nbsp;_dos_setdrive(<a href="#SL1450">nOld</a>,&nbsp;&amp;<a href="#SL1448">nMax</a>);<BR/>
</span>
<span id= "SL1462">
<BR/>
</span>
<span id= "SL1463">
&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL1449">nTry</a>&nbsp;=&nbsp;1;&nbsp;<a href="#SL1449">nTry</a>&nbsp;&lt;&nbsp;<a href="#SL1448">nMax</a>;&nbsp;<a href="#SL1449">nTry</a>++)<BR/>
</span>
<span id= "SL1464">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1465">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_dos_setdrive(<a href="#SL1449">nTry</a>,&nbsp;&amp;<a href="#SL1448">nMax</a>);<BR/>
</span>
<span id= "SL1466">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_dos_getdrive(&amp;<a href="#SL1451">nCurrent</a>);<BR/>
</span>
<span id= "SL1467">
<BR/>
</span>
<span id= "SL1468">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1451">nCurrent</a>&nbsp;==&nbsp;<a href="#SL1449">nTry</a>)<BR/>
</span>
<span id= "SL1469">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1470">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1455">inregs</a>.h.bl&nbsp;=&nbsp;(<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>)&nbsp;<a href="#SL1449">nTry</a>;<BR/>
</span>
<span id= "SL1471">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1455">inregs</a>.x.ax&nbsp;=&nbsp;0x4408;<BR/>
</span>
<span id= "SL1472">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int86x(0x21,&nbsp;&amp;<a href="#SL1455">inregs</a>,&nbsp;&amp;<a href="#SL1455">inregs</a>,&nbsp;&amp;<a href="#SL1456">segregs</a>);<BR/>
</span>
<span id= "SL1473">
<BR/>
</span>
<span id= "SL1474">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1455">inregs</a>.x.ax&nbsp;==&nbsp;0x0001)<BR/>
</span>
<span id= "SL1475">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1476">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1455">inregs</a>.h.ah&nbsp;=&nbsp;0x1C;<BR/>
</span>
<span id= "SL1477">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1455">inregs</a>.h.dl&nbsp;=&nbsp;(<span class=keyword>unsigned</span>&nbsp;<span class=keyword>char</span>)&nbsp;<a href="#SL1449">nTry</a>;<BR/>
</span>
<span id= "SL1478">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int86x(0x21,&nbsp;&amp;<a href="#SL1455">inregs</a>,&nbsp;&amp;<a href="#SL1455">inregs</a>,&nbsp;&amp;<a href="#SL1456">segregs</a>);<BR/>
</span>
<span id= "SL1479">
<BR/>
</span>
<span id= "SL1480">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FP_OFF(<a href="#SL1453">uipNewWalker</a>)&nbsp;=&nbsp;<a href="#SL1455">inregs</a>.x.bx;<BR/>
</span>
<span id= "SL1481">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FP_SEG(<a href="#SL1453">uipNewWalker</a>)&nbsp;=&nbsp;<a href="#SL1456">segregs</a>.ds;<BR/>
</span>
<span id= "SL1482">
<BR/>
</span>
<span id= "SL1483">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;((*<a href="#SL1453">uipNewWalker</a>&nbsp;&amp;&nbsp;0x00FF)&nbsp;==&nbsp;0xF8)<BR/>
</span>
<span id= "SL1484">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1485">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1452">pstrDest</a>++&nbsp;=&nbsp;'<span class=literal>A'</span>&nbsp;+&nbsp;<a href="#SL1449">nTry</a>&nbsp;-&nbsp;1;<BR/>
</span>
<span id= "SL1486">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1452">pstrDest</a>&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1487">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1488">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1489">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1490">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1491">
<BR/>
</span>
<span id= "SL1492">
&nbsp;&nbsp;&nbsp;_dos_setdrive(<a href="#SL1450">nOld</a>,&nbsp;&amp;<a href="#SL1448">nMax</a>);<BR/>
</span>
<span id= "SL1493">
<BR/>
</span>
<span id= "SL1494">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1495">
}<BR/>
</span>
<span id= "SL1496">
<BR/>
</span>
<span id= "SL1497">
<BR/>
</span>
<span id= "SL1498">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1499">
<span class=comment>&nbsp;&nbsp;&nbsp;builddrivelist()&nbsp;sets&nbsp;drivelist&nbsp;to&nbsp;an&nbsp;ASCII&nbsp;string&nbsp;of&nbsp;the&nbsp;drive<BR/>
</span></span>
<span id= "SL1500">
<span class=comment>&nbsp;&nbsp;&nbsp;letters&nbsp;that&nbsp;are&nbsp;valid&nbsp;on&nbsp;this&nbsp;system.&nbsp;&nbsp;drivelist&nbsp;will&nbsp;only&nbsp;contain<BR/>
</span></span>
<span id= "SL1501">
<span class=comment>&nbsp;&nbsp;&nbsp;the&nbsp;identifiers&nbsp;of&nbsp;hard&nbsp;disk&nbsp;drives&nbsp;(with&nbsp;the&nbsp;media&nbsp;type&nbsp;0xF8.)<BR/>
</span></span>
<span id= "SL1502">
<span class=comment>&nbsp;&nbsp;&nbsp;This&nbsp;function&nbsp;was&nbsp;added&nbsp;for&nbsp;Version&nbsp;1.10.&nbsp;&nbsp;This&nbsp;function&nbsp;was&nbsp;changed<BR/>
</span></span>
<span id= "SL1503">
<span class=comment>&nbsp;&nbsp;&nbsp;with&nbsp;Version&nbsp;2.10&nbsp;to&nbsp;accomodate&nbsp;DOS&nbsp;5.0.<BR/>
</span></span>
<span id= "SL1504">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1505">
<BR/>
</span>
<span id= "SL1506">
<span class=keyword>void</span>&nbsp;<a href="#SL280">builddrivelist</a>()<BR/>
</span>
<span id= "SL1507">
{<BR/>
</span>
<span id= "SL1508">
&nbsp;&nbsp;&nbsp;<span class=keyword>union</span>&nbsp;<a href="#SL1508">REGS</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inregs;<BR/>
</span>
<span id= "SL1509">
&nbsp;&nbsp;&nbsp;<span class=keyword>struct</span>&nbsp;<a href="#SL1509">SREGS</a>&nbsp;&nbsp;&nbsp;segregs;<BR/>
</span>
<span id= "SL1510">
<BR/>
</span>
<span id= "SL1511">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;far&nbsp;*walker;<BR/>
</span>
<span id= "SL1512">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;far&nbsp;*newwalker;<BR/>
</span>
<span id= "SL1513">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;far&nbsp;*nextone_off;<BR/>
</span>
<span id= "SL1514">
&nbsp;&nbsp;&nbsp;<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;far&nbsp;*nextone_seg;<BR/>
</span>
<span id= "SL1515">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;far&nbsp;*media_type;<BR/>
</span>
<span id= "SL1516">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;*dest;<BR/>
</span>
<span id= "SL1517">
<BR/>
</span>
<span id= "SL1518">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(_osmajor&nbsp;==&nbsp;6)<BR/>
</span>
<span id= "SL1519">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1520">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1446">vBuildDOS6List</a>();<BR/>
</span>
<span id= "SL1521">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1522">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1523">
<BR/>
</span>
<span id= "SL1524">
&nbsp;&nbsp;&nbsp;<a href="#SL1516">dest</a>&nbsp;=&nbsp;<a href="#SL232">drivelist</a>;<BR/>
</span>
<span id= "SL1525">
&nbsp;&nbsp;&nbsp;*<a href="#SL1516">dest</a>&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1526">
<BR/>
</span>
<span id= "SL1527">
&nbsp;&nbsp;&nbsp;<a href="#SL1508">inregs</a>.h.ah&nbsp;=&nbsp;0x52;<BR/>
</span>
<span id= "SL1528">
&nbsp;&nbsp;&nbsp;int86x(0x21,&nbsp;&amp;<a href="#SL1508">inregs</a>,&nbsp;&amp;<a href="#SL1508">inregs</a>,&nbsp;&amp;<a href="#SL1509">segregs</a>);<BR/>
</span>
<span id= "SL1529">
<BR/>
</span>
<span id= "SL1530">
&nbsp;&nbsp;&nbsp;FP_OFF(<a href="#SL1512">newwalker</a>)&nbsp;=&nbsp;<a href="#SL1508">inregs</a>.x.bx;<BR/>
</span>
<span id= "SL1531">
&nbsp;&nbsp;&nbsp;FP_SEG(<a href="#SL1512">newwalker</a>)&nbsp;=&nbsp;<a href="#SL1509">segregs</a>.es;<BR/>
</span>
<span id= "SL1532">
<BR/>
</span>
<span id= "SL1533">
&nbsp;&nbsp;&nbsp;FP_OFF(<a href="#SL1511">walker</a>)&nbsp;=&nbsp;<a href="#SL1512">newwalker</a>[0];<BR/>
</span>
<span id= "SL1534">
&nbsp;&nbsp;&nbsp;FP_SEG(<a href="#SL1511">walker</a>)&nbsp;=&nbsp;<a href="#SL1512">newwalker</a>[1];<BR/>
</span>
<span id= "SL1535">
<BR/>
</span>
<span id= "SL1536">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>(1)<BR/>
</span>
<span id= "SL1537">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1538">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>switch</span>&nbsp;(_osmajor)<BR/>
</span>
<span id= "SL1539">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1540">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;2:<BR/>
</span>
<span id= "SL1541">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1515">media_type</a>&nbsp;=&nbsp;(<span class=keyword>char</span>&nbsp;far&nbsp;*)&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x16;<BR/>
</span>
<span id= "SL1542">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1513">nextone_off</a>&nbsp;=&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x0C;<BR/>
</span>
<span id= "SL1543">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1514">nextone_seg</a>&nbsp;=&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x0D;<BR/>
</span>
<span id= "SL1544">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1545">
<BR/>
</span>
<span id= "SL1546">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;3:<BR/>
</span>
<span id= "SL1547">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1515">media_type</a>&nbsp;=&nbsp;(<span class=keyword>char</span>&nbsp;far&nbsp;*)&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x16;<BR/>
</span>
<span id= "SL1548">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1513">nextone_off</a>&nbsp;=&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x0C;<BR/>
</span>
<span id= "SL1549">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1514">nextone_seg</a>&nbsp;=&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x0D;<BR/>
</span>
<span id= "SL1550">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1551">
<BR/>
</span>
<span id= "SL1552">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;4:<BR/>
</span>
<span id= "SL1553">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>case</span>&nbsp;5:<BR/>
</span>
<span id= "SL1554">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1515">media_type</a>&nbsp;=&nbsp;(<span class=keyword>char</span>&nbsp;far&nbsp;*)&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x17;<BR/>
</span>
<span id= "SL1555">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1513">nextone_off</a>&nbsp;=&nbsp;(<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;far&nbsp;*)&nbsp;((<span class=keyword>char</span>&nbsp;far&nbsp;*)&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x19);<BR/>
</span>
<span id= "SL1556">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1514">nextone_seg</a>&nbsp;=&nbsp;(<span class=keyword>unsigned</span>&nbsp;<span class=keyword>int</span>&nbsp;far&nbsp;*)&nbsp;((<span class=keyword>char</span>&nbsp;far&nbsp;*)&nbsp;<a href="#SL1511">walker</a>&nbsp;+&nbsp;0x1B);<BR/>
</span>
<span id= "SL1557">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1558">
<BR/>
</span>
<span id= "SL1559">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>default</span>:<BR/>
</span>
<span id= "SL1560">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;&quot;<span class=literal>NJFIND:&nbsp;Incompatible&nbsp;DOS&nbsp;Version:&nbsp;%d.%d\n&quot;</span>,<BR/>
</span>
<span id= "SL1561">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_osmajor,&nbsp;_osminor);<BR/>
</span>
<span id= "SL1562">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1);<BR/>
</span>
<span id= "SL1563">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1564">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1565">
<BR/>
</span>
<span id= "SL1566">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;((*<a href="#SL1515">media_type</a>&nbsp;&amp;&nbsp;0x00FF)&nbsp;==&nbsp;0xF8)<BR/>
</span>
<span id= "SL1567">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1568">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1516">dest</a>++&nbsp;=&nbsp;(<span class=keyword>char</span>)&nbsp;*<a href="#SL1511">walker</a>&nbsp;+&nbsp;'<span class=literal>A'</span>;<BR/>
</span>
<span id= "SL1569">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1516">dest</a>&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1570">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1571">
<BR/>
</span>
<span id= "SL1572">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FP_OFF(<a href="#SL1511">walker</a>)&nbsp;=&nbsp;*<a href="#SL1513">nextone_off</a>;<BR/>
</span>
<span id= "SL1573">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FP_SEG(<a href="#SL1511">walker</a>)&nbsp;=&nbsp;*<a href="#SL1514">nextone_seg</a>;<BR/>
</span>
<span id= "SL1574">
<BR/>
</span>
<span id= "SL1575">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(FP_OFF(<a href="#SL1511">walker</a>)&nbsp;==&nbsp;0xFFFF)<BR/>
</span>
<span id= "SL1576">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1577">
<BR/>
</span>
<span id= "SL1578">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;((*<a href="#SL1511">walker</a>&nbsp;&amp;&nbsp;0x00FF)&nbsp;&gt;&nbsp;26)<BR/>
</span>
<span id= "SL1579">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1580">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1581">
<BR/>
</span>
<span id= "SL1582">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1583">
}<BR/>
</span>
<span id= "SL1584">
<BR/>
</span>
<span id= "SL1585">
<BR/>
</span>
<span id= "SL1586">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1587">
<span class=comment>&nbsp;&nbsp;&nbsp;The&nbsp;breakout()&nbsp;function&nbsp;handles&nbsp;the&nbsp;SIGINT&nbsp;signal&nbsp;for&nbsp;the&nbsp;program.<BR/>
</span></span>
<span id= "SL1588">
<span class=comment>&nbsp;&nbsp;&nbsp;Here,&nbsp;we&nbsp;simply&nbsp;set&nbsp;a&nbsp;flag&nbsp;so&nbsp;that&nbsp;the&nbsp;working&nbsp;loop&nbsp;will&nbsp;terminate<BR/>
</span></span>
<span id= "SL1589">
<span class=comment>&nbsp;&nbsp;&nbsp;and&nbsp;return.&nbsp;&nbsp;This&nbsp;allows&nbsp;us&nbsp;to&nbsp;leave&nbsp;neatly,&nbsp;by&nbsp;resetting&nbsp;the<BR/>
</span></span>
<span id= "SL1590">
<span class=comment>&nbsp;&nbsp;&nbsp;current&nbsp;drive&nbsp;and&nbsp;printing&nbsp;out&nbsp;our&nbsp;totals.&nbsp;&nbsp;(That&nbsp;doesn't&nbsp;take&nbsp;very<BR/>
</span></span>
<span id= "SL1591">
<span class=comment>&nbsp;&nbsp;&nbsp;long&nbsp;and&nbsp;should&nbsp;not&nbsp;be&nbsp;much&nbsp;of&nbsp;an&nbsp;annoyance&nbsp;to&nbsp;the&nbsp;user.)<BR/>
</span></span>
<span id= "SL1592">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1593">
<BR/>
</span>
<span id= "SL1594">
<span class=keyword>void</span>&nbsp;&nbsp;<a href="#SL279">breakout</a>(<span class=keyword>void</span>)<BR/>
</span>
<span id= "SL1595">
{<BR/>
</span>
<span id= "SL1596">
&nbsp;&nbsp;&nbsp;signal(SIGINT,&nbsp;SIG_IGN);<BR/>
</span>
<span id= "SL1597">
&nbsp;&nbsp;&nbsp;signal(SIGINT,&nbsp;<a href="#SL279">breakout</a>);<BR/>
</span>
<span id= "SL1598">
<BR/>
</span>
<span id= "SL1599">
&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL1600">
&nbsp;&nbsp;&nbsp;<a href="#SL220">broken</a>&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL1601">
<BR/>
</span>
<span id= "SL1602">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1603">
}<BR/>
</span>
<span id= "SL1604">
<BR/>
</span>
<span id= "SL1605">
<BR/>
</span>
<span id= "SL1606">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1607">
<span class=comment>&nbsp;&nbsp;&nbsp;handleenvironment()&nbsp;takes&nbsp;care&nbsp;of&nbsp;looking&nbsp;at&nbsp;the&nbsp;environment&nbsp;to<BR/>
</span></span>
<span id= "SL1608">
<span class=comment>&nbsp;&nbsp;&nbsp;find&nbsp;NJFIND&nbsp;settings.&nbsp;&nbsp;If&nbsp;such&nbsp;an&nbsp;entry&nbsp;is&nbsp;found,&nbsp;it&nbsp;is&nbsp;parsed&nbsp;by<BR/>
</span></span>
<span id= "SL1609">
<span class=comment>&nbsp;&nbsp;&nbsp;running&nbsp;pointers&nbsp;through&nbsp;it&nbsp;and&nbsp;calling&nbsp;handleoption().<BR/>
</span></span>
<span id= "SL1610">
<span class=comment><BR/>
</span></span>
<span id= "SL1611">
<span class=comment>&nbsp;&nbsp;&nbsp;This&nbsp;function&nbsp;is&nbsp;new&nbsp;for&nbsp;Version&nbsp;2.00.<BR/>
</span></span>
<span id= "SL1612">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1613">
<BR/>
</span>
<span id= "SL1614">
<span class=keyword>void</span>&nbsp;<a href="#SL281">handleenvironment</a>()<BR/>
</span>
<span id= "SL1615">
{<BR/>
</span>
<span id= "SL1616">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;*environment;<BR/>
</span>
<span id= "SL1617">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;*walker;<BR/>
</span>
<span id= "SL1618">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;*destination;<BR/>
</span>
<span id= "SL1619">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;copy[10];<BR/>
</span>
<span id= "SL1620">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;len;<BR/>
</span>
<span id= "SL1621">
<BR/>
</span>
<span id= "SL1622">
&nbsp;&nbsp;&nbsp;<a href="#SL1616">environment</a>&nbsp;=&nbsp;getenv(&quot;<span class=literal>NJFIND&quot;</span>);<BR/>
</span>
<span id= "SL1623">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1616">environment</a>&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL1624">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1625">
<BR/>
</span>
<span id= "SL1626">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL1627">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>NJFIND&nbsp;found!\n&quot;</span>);<BR/>
</span>
<span id= "SL1628">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL1629">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL1630">
&nbsp;&nbsp;&nbsp;<a href="#SL1617">walker</a>&nbsp;=&nbsp;<a href="#SL1616">environment</a>;<BR/>
</span>
<span id= "SL1631">
<BR/>
</span>
<span id= "SL1632">
&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(*<a href="#SL1617">walker</a>&nbsp;!=&nbsp;'<span class=literal>\0'</span>)<BR/>
</span>
<span id= "SL1633">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1634">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(isspace(*<a href="#SL1617">walker</a>))<BR/>
</span>
<span id= "SL1635">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1636">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1617">walker</a>++;<BR/>
</span>
<span id= "SL1637">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1638">
<BR/>
</span>
<span id= "SL1639">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(*<a href="#SL1617">walker</a>&nbsp;==&nbsp;'<span class=literal>\0'</span>)<BR/>
</span>
<span id= "SL1640">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>break</span>;<BR/>
</span>
<span id= "SL1641">
<BR/>
</span>
<span id= "SL1642">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1618">destination</a>&nbsp;=&nbsp;<a href="#SL1619">copy</a>;<BR/>
</span>
<span id= "SL1643">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1620">len</a>&nbsp;=&nbsp;0;<BR/>
</span>
<span id= "SL1644">
<BR/>
</span>
<span id= "SL1645">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>while</span>&nbsp;(!isspace(*<a href="#SL1617">walker</a>)&nbsp;&&&nbsp;*<a href="#SL1617">walker</a>&nbsp;!=&nbsp;'<span class=literal>\0'</span>)<BR/>
</span>
<span id= "SL1646">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1647">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1618">destination</a>++&nbsp;=&nbsp;*<a href="#SL1617">walker</a>++;<BR/>
</span>
<span id= "SL1648">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1618">destination</a>&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1649">
<BR/>
</span>
<span id= "SL1650">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(++<a href="#SL1620">len</a>&nbsp;==&nbsp;ELEMENTS(<a href="#SL1619">copy</a>))<BR/>
</span>
<span id= "SL1651">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1652">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>NJFIND:&nbsp;option&nbsp;too&nbsp;long&nbsp;in&nbsp;environment\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1653">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1);<BR/>
</span>
<span id= "SL1654">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1655">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1656">
<BR/>
</span>
<span id= "SL1657">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1619">copy</a>[0]&nbsp;==&nbsp;'<span class=literal>/'</span>&nbsp;||&nbsp;<a href="#SL1619">copy</a>[0]&nbsp;==&nbsp;'<span class=literal>-'</span>)<BR/>
</span>
<span id= "SL1658">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL278">handleoption</a>(<a href="#SL1619">copy</a>+1,&nbsp;TRUE);<BR/>
</span>
<span id= "SL1659">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1660">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1661">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>NJFIND:&nbsp;only&nbsp;options&nbsp;supported&nbsp;in&nbsp;environment\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1662">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1);<BR/>
</span>
<span id= "SL1663">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1664">
<BR/>
</span>
<span id= "SL1665">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1666">
<BR/>
</span>
<span id= "SL1667">
&nbsp;&nbsp;&nbsp;<span class=keyword>return</span>;<BR/>
</span>
<span id= "SL1668">
}<BR/>
</span>
<span id= "SL1669">
<BR/>
</span>
<span id= "SL1670">
<BR/>
</span>
<span id= "SL1671">
/*<span class=comment>&nbsp;--------------------------------------------------------------------------<BR/>
</span></span>
<span id= "SL1672">
<span class=comment>&nbsp;&nbsp;&nbsp;The&nbsp;Main&nbsp;Thang.<BR/>
</span></span>
<span id= "SL1673">
<span class=comment>*/</span><BR/>
</span>
<span id= "SL1674">
<BR/>
</span>
<span id= "SL1675">
<span class=keyword>void</span>&nbsp;<a href="#SL282">main</a>(<span class=keyword>int</span>&nbsp;argc,&nbsp;<span class=keyword>char</span>&nbsp;*argv[])<BR/>
</span>
<span id= "SL1676">
{<BR/>
</span>
<span id= "SL1677">
&nbsp;&nbsp;&nbsp;<span class=keyword>int</span>&nbsp;&nbsp;&nbsp;argcounter;<BR/>
</span>
<span id= "SL1678">
&nbsp;&nbsp;&nbsp;<span class=keyword>char</span>&nbsp;&nbsp;*userfilespec;<BR/>
</span>
<span id= "SL1679">
<BR/>
</span>
<span id= "SL1680">
&nbsp;&nbsp;&nbsp;signal(SIGINT,&nbsp;<a href="#SL279">breakout</a>);<BR/>
</span>
<span id= "SL1681">
<BR/>
</span>
<span id= "SL1682">
&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL1677">argcounter</a>&nbsp;=&nbsp;0;&nbsp;<a href="#SL1677">argcounter</a>&nbsp;&lt;&nbsp;50;&nbsp;<a href="#SL1677">argcounter</a>++)<BR/>
</span>
<span id= "SL1683">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL224">fiftyspaces</a>[<a href="#SL1677">argcounter</a>]&nbsp;=&nbsp;'<span class=literal>&nbsp;'</span>;<BR/>
</span>
<span id= "SL1684">
&nbsp;&nbsp;&nbsp;<a href="#SL224">fiftyspaces</a>[<a href="#SL1677">argcounter</a>]&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1685">
<BR/>
</span>
<span id= "SL1686">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>Nifty&nbsp;James'&nbsp;File&nbsp;Finder\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1687">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>Version&nbsp;2.17/ASP&nbsp;of&nbsp;22&nbsp;March,&nbsp;1993\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1688">
&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>(C)&nbsp;Copyright&nbsp;1989-1993&nbsp;by&nbsp;Mike&nbsp;Blaszczak\n\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1689">
<BR/>
</span>
<span id= "SL1690">
&nbsp;&nbsp;&nbsp;<a href="#SL280">builddrivelist</a>();<BR/>
</span>
<span id= "SL1691">
<BR/>
</span>
<span id= "SL1692">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1675">argc</a>&nbsp;&lt;&nbsp;2)<BR/>
</span>
<span id= "SL1693">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1694">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL277">showusage</a>();<BR/>
</span>
<span id= "SL1695">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1696">
<BR/>
</span>
<span id= "SL1697">
&nbsp;&nbsp;&nbsp;<a href="#SL1678">userfilespec</a>&nbsp;=&nbsp;NULL;<BR/>
</span>
<span id= "SL1698">
&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL1677">argcounter</a>&nbsp;=&nbsp;1;&nbsp;<a href="#SL1677">argcounter</a>&lt;<a href="#SL1675">argc</a>;&nbsp;<a href="#SL1677">argcounter</a>++)<BR/>
</span>
<span id= "SL1699">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1700">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1675">argv</a>[<a href="#SL1677">argcounter</a>][0]&nbsp;==&nbsp;'<span class=literal>/'</span>&nbsp;||&nbsp;<a href="#SL1675">argv</a>[<a href="#SL1677">argcounter</a>][0]&nbsp;==&nbsp;'<span class=literal>-'</span>)<BR/>
</span>
<span id= "SL1701">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1702">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL278">handleoption</a>(<a href="#SL1675">argv</a>[<a href="#SL1677">argcounter</a>]+1,&nbsp;FALSE);<BR/>
</span>
<span id= "SL1703">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1704">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1705">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1706">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1678">userfilespec</a>&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL1707">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1708">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1678">userfilespec</a>&nbsp;=&nbsp;<a href="#SL1675">argv</a>[<a href="#SL1677">argcounter</a>];<BR/>
</span>
<span id= "SL1709">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1710">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1711">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1712">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fputs(&quot;<span class=literal>Only&nbsp;one&nbsp;filespec&nbsp;allowed!\n\n&quot;</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1713">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1);<BR/>
</span>
<span id= "SL1714">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1715">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1716">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1717">
<BR/>
</span>
<span id= "SL1718">
&nbsp;&nbsp;&nbsp;<a href="#SL281">handleenvironment</a>();<BR/>
</span>
<span id= "SL1719">
<BR/>
</span>
<span id= "SL1720">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;moved&nbsp;from&nbsp;handleoption&nbsp;in&nbsp;version&nbsp;2.00&nbsp;&nbsp;&nbsp;*/</span><BR/>
</span>
<span id= "SL1721">
<BR/>
</span>
<span id= "SL1722">
&nbsp;&nbsp;&nbsp;fputc('<span class=literal>\n'</span>,&nbsp;stderr);<BR/>
</span>
<span id= "SL1723">
<BR/>
</span>
<span id= "SL1724">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;end&nbsp;of&nbsp;moved&nbsp;code&nbsp;*/</span><BR/>
</span>
<span id= "SL1725">
<BR/>
</span>
<span id= "SL1726">
&nbsp;&nbsp;&nbsp;_dos_getdrive(&amp;olddrive);<BR/>
</span>
<span id= "SL1727">
&nbsp;&nbsp;&nbsp;<a href="#SL230">newdriveletter</a>[0]&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1728">
<BR/>
</span>
<span id= "SL1729">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1678">userfilespec</a>&nbsp;==&nbsp;NULL)<BR/>
</span>
<span id= "SL1730">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1731">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1678">userfilespec</a>&nbsp;=&nbsp;&quot;<span class=literal>X:\\*.*&quot;</span>;<BR/>
</span>
<span id= "SL1732">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1678">userfilespec</a>[0]&nbsp;=&nbsp;(<span class=keyword>char</span>)&nbsp;olddrive&nbsp;+&nbsp;'<span class=literal>A'</span>;<BR/>
</span>
<span id= "SL1733">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL232">drivelist</a>[0]&nbsp;=&nbsp;<a href="#SL1678">userfilespec</a>[0];<BR/>
</span>
<span id= "SL1734">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL232">drivelist</a>[1]&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1735">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1736">
&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1737">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL222">alldrives</a>&nbsp;==&nbsp;FALSE)<BR/>
</span>
<span id= "SL1738">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1739">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1678">userfilespec</a>[1]&nbsp;==&nbsp;'<span class=literal>:'</span>)<BR/>
</span>
<span id= "SL1740">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1741">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<a href="#SL1678">userfilespec</a>&nbsp;=&nbsp;(<span class=keyword>char</span>)&nbsp;toupper(*<a href="#SL1678">userfilespec</a>);<BR/>
</span>
<span id= "SL1742">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newdrive&nbsp;=&nbsp;(<span class=keyword>unsigned</span>)&nbsp;(*<a href="#SL1678">userfilespec</a>&nbsp;-&nbsp;'<span class=literal>A'</span>&nbsp;+1);<BR/>
</span>
<span id= "SL1743">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_dos_setdrive(newdrive,&nbsp;&amp;drivecount);<BR/>
</span>
<span id= "SL1744">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_dos_getdrive(&amp;lastdrive);<BR/>
</span>
<span id= "SL1745">
<BR/>
</span>
<span id= "SL1746">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(lastdrive&nbsp;!=&nbsp;newdrive)<BR/>
</span>
<span id= "SL1747">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1748">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;&quot;<span class=literal>NJFIND:&nbsp;Invalid&nbsp;drive&nbsp;%c:.\n&quot;</span>,&nbsp;*<a href="#SL1678">userfilespec</a>);<BR/>
</span>
<span id= "SL1749">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fprintf(stderr,&nbsp;&quot;<span class=literal>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Valid&nbsp;drives&nbsp;are&nbsp;A:&nbsp;to&nbsp;%c:\n&quot;</span>,<BR/>
</span>
<span id= "SL1750">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL232">drivelist</a>[strlen(<a href="#SL232">drivelist</a>)-1]);<BR/>
</span>
<span id= "SL1751">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit(1);<BR/>
</span>
<span id= "SL1752">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1753">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1754">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1755">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL218">changedrive</a>&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL1756">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL232">drivelist</a>[0]&nbsp;=&nbsp;*<a href="#SL1678">userfilespec</a>;<BR/>
</span>
<span id= "SL1757">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL232">drivelist</a>[1]&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1758">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1678">userfilespec</a>&nbsp;+=&nbsp;2;<BR/>
</span>
<span id= "SL1759">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1760">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1761">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1762">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1763">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL232">drivelist</a>[0]&nbsp;=&nbsp;(<span class=keyword>char</span>)&nbsp;(olddrive&nbsp;+&nbsp;'<span class=literal>A'</span>&nbsp;-1);<BR/>
</span>
<span id= "SL1764">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL232">drivelist</a>[1]&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1765">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1766">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1767">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1768">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1769">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL218">changedrive</a>&nbsp;=&nbsp;TRUE;<BR/>
</span>
<span id= "SL1770">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL1678">userfilespec</a>[1]&nbsp;==&nbsp;'<span class=literal>:'</span>)<BR/>
</span>
<span id= "SL1771">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL1678">userfilespec</a>&nbsp;+=&nbsp;2;<BR/>
</span>
<span id= "SL1772">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1773">
<BR/>
</span>
<span id= "SL1774">
&nbsp;&nbsp;&nbsp;<a href="#SL189">inputfile</a>&nbsp;=&nbsp;strupr(<a href="#SL1678">userfilespec</a>);<BR/>
</span>
<span id= "SL1775">
&nbsp;&nbsp;&nbsp;<a href="#SL274">maketemplate</a>();<BR/>
</span>
<span id= "SL1776">
&nbsp;&nbsp;&nbsp;<a href="#SL275">makefullname</a>(&amp;<a href="#SL193">matchname</a>,&nbsp;<span class=keyword>template</span>);<BR/>
</span>
<span id= "SL1777">
#<span class=preprocessor>if&nbsp;defined(DEBUG)<BR/>
</span></span>
<span id= "SL1778">
<span class=preprocessor></span>&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>template:&nbsp;%s\n&quot;</span>,&nbsp;<span class=keyword>template</span>);<BR/>
</span>
<span id= "SL1779">
#<span class=preprocessor>endif<BR/>
</span></span>
<span id= "SL1780">
<span class=preprocessor></span><BR/>
</span>
<span id= "SL1781">
&nbsp;&nbsp;&nbsp;<span class=keyword>for</span>&nbsp;(<a href="#SL233">currentdrive</a>&nbsp;=&nbsp;<a href="#SL232">drivelist</a>;&nbsp;*<a href="#SL233">currentdrive</a>&nbsp;!=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1782">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL233">currentdrive</a>++)<BR/>
</span>
<span id= "SL1783">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1784">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL230">newdriveletter</a>[0]&nbsp;=&nbsp;*<a href="#SL233">currentdrive</a>;<BR/>
</span>
<span id= "SL1785">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL230">newdriveletter</a>[1]&nbsp;=&nbsp;'<span class=literal>:'</span>;<BR/>
</span>
<span id= "SL1786">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL230">newdriveletter</a>[2]&nbsp;=&nbsp;'<span class=literal>\0'</span>;<BR/>
</span>
<span id= "SL1787">
<BR/>
</span>
<span id= "SL1788">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newdrive&nbsp;=&nbsp;(<span class=keyword>unsigned</span>)&nbsp;(*<a href="#SL233">currentdrive</a>&nbsp;-&nbsp;'<span class=literal>A'</span>&nbsp;+1);<BR/>
</span>
<span id= "SL1789">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_dos_setdrive(newdrive,&nbsp;&amp;drivecount);<BR/>
</span>
<span id= "SL1790">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#SL276">searchdir</a>(&quot;<span class=literal>\\*.*&quot;</span>);<BR/>
</span>
<span id= "SL1791">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1792">
<BR/>
</span>
<span id= "SL1793">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL220">broken</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL1794">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>\nNJFIND:&nbsp;Searching&nbsp;interrupted!\n\n&quot;</span>);<BR/>
</span>
<span id= "SL1795">
<BR/>
</span>
<span id= "SL1796">
&nbsp;&nbsp;&nbsp;/*<span class=comment>&nbsp;print&nbsp;out&nbsp;statistics&nbsp;*/</span><BR/>
</span>
<span id= "SL1797">
<BR/>
</span>
<span id= "SL1798">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>\n&nbsp;&nbsp;&nbsp;%5u&nbsp;file&quot;</span>,&nbsp;found);<BR/>
</span>
<span id= "SL1799">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(found&nbsp;!=&nbsp;1)<BR/>
</span>
<span id= "SL1800">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>s'</span>);<BR/>
</span>
<span id= "SL1801">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>&nbsp;found.\n&quot;</span>);<BR/>
</span>
<span id= "SL1802">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>&nbsp;&nbsp;&nbsp;%5u&nbsp;archived&nbsp;file&quot;</span>,&nbsp;archivefound);<BR/>
</span>
<span id= "SL1803">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(archivefound&nbsp;!=&nbsp;1)<BR/>
</span>
<span id= "SL1804">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>s'</span>);<BR/>
</span>
<span id= "SL1805">
&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>&nbsp;found.\n&quot;</span>);<BR/>
</span>
<span id= "SL1806">
<BR/>
</span>
<span id= "SL1807">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(found&nbsp;!=&nbsp;0&nbsp;&&&nbsp;archivefound&nbsp;!=&nbsp;0)<BR/>
</span>
<span id= "SL1808">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>&nbsp;&nbsp;&nbsp;%5u&nbsp;files&nbsp;found&nbsp;in&nbsp;total.\n&quot;</span>,&nbsp;found&nbsp;+&nbsp;archivefound);<BR/>
</span>
<span id= "SL1809">
&nbsp;&nbsp;&nbsp;<span class=keyword>else</span><BR/>
</span>
<span id= "SL1810">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL1811">
<BR/>
</span>
<span id= "SL1812">
&nbsp;&nbsp;&nbsp;putchar('<span class=literal>\n'</span>);<BR/>
</span>
<span id= "SL1813">
<BR/>
</span>
<span id= "SL1814">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL217">totalsmode</a>&nbsp;==&nbsp;TRUE&nbsp;||&nbsp;<a href="#SL215">verbose</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL1815">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR/>
</span>
<span id= "SL1816">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(found&nbsp;!=&nbsp;0)<BR/>
</span>
<span id= "SL1817">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>Found&nbsp;files&nbsp;total&nbsp;%lu&nbsp;bytes.\n&quot;</span>,&nbsp;<a href="#SL196">totallength</a>);<BR/>
</span>
<span id= "SL1818">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(archivefound&nbsp;!=&nbsp;0)<BR/>
</span>
<span id= "SL1819">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf(&quot;<span class=literal>Found&nbsp;archive&nbsp;files&nbsp;total&nbsp;%lu&nbsp;bytes.\n&quot;</span>,&nbsp;<a href="#SL199">archivetotallength</a>);<BR/>
</span>
<span id= "SL1820">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR/>
</span>
<span id= "SL1821">
<BR/>
</span>
<span id= "SL1822">
&nbsp;&nbsp;&nbsp;<span class=keyword>if</span>&nbsp;(<a href="#SL218">changedrive</a>&nbsp;==&nbsp;TRUE)<BR/>
</span>
<span id= "SL1823">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_dos_setdrive(olddrive,&nbsp;&amp;drivecount);<BR/>
</span>
<span id= "SL1824">
<BR/>
</span>
<span id= "SL1825">
&nbsp;&nbsp;&nbsp;exit(0);<BR/>
</span>
<span id= "SL1826">
}<BR/>
</span>
<span id= "SL1827">
<BR/>
</span>
<span id= "SL1828">
<BR/>
</span>
<span id= "SL1829">
</span>
</body>
</html>
